Codoforum related discussions
Error if message starts with smiley or !

Hello,

I'm getting an error if I start a message with a smiley/emoticon

here is a screenshot from the error I get.

53ba8fb4d4cdf.jpg

anyone know what to do?

Thanx

Hello, I'm getting an error if I start a message with a smiley/emoticon here is a screenshot from the error I get. ![53ba8fb4d4cdf.jpg](serve/attachment&path=53ba8fb4d4cdf.jpg) anyone know what to do? Thanx

Can you try this:

Open sys/Ext/Html.php

On line 521 , replace

iconv('UTF-8', 'UTF-8', $v), ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8'

with

$v, ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8'

If that does not help, can you post the exact message which gave you the error ?

Can you try this: Open sys/Ext/Html.php On line 521 , replace ```` iconv('UTF-8', 'UTF-8', $v), ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8' ```` with ```` $v, ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8' ```` If that does not help, can you post the exact message which gave you the error ?
Necessity is the mother of all inventions!

Hello,

Sorry to tell, but it did'nt work smile

the exact message is

|-) (:| :D

and a space after the D

thanks for your quick response btw ;)

Hello, Sorry to tell, but it did'nt work :( the exact message is ```` |-) (:| :D ```` and a space after the D thanks for your quick response btw ;)

We found the error , it is because of an older version of PHP which does not support some of the constants used.

Replace the same line with

iconv('UTF-8', 'UTF-8', $v), ENT_NOQUOTES | ENT_IGNORE, 'UTF-8'

or , if that still does not work :

$v, ENT_NOQUOTES, 'UTF-8'
We found the error , it is because of an older version of PHP which does not support some of the constants used. Replace the same line with ```` iconv('UTF-8', 'UTF-8', $v), ENT_NOQUOTES | ENT_IGNORE, 'UTF-8' ```` or , if that still does not work : ```` $v, ENT_NOQUOTES, 'UTF-8' ````
Necessity is the mother of all inventions!
128
3
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft