Mchl Posted June 7, 2010 Share Posted June 7, 2010 How would that help? Quote Link to comment https://forums.phpfreaks.com/topic/203464-problem-with-accents/page/2/#findComment-1068861 Share on other sites More sharing options...
shadiadiph Posted June 7, 2010 Share Posted June 7, 2010 I had a similar problem with a messaging script before it was returning gibberish html when recalled I found that when i stripped the html before storing it and recalled it the problem was solved. Maybe it won't work in this instance Quote Link to comment https://forums.phpfreaks.com/topic/203464-problem-with-accents/page/2/#findComment-1068876 Share on other sites More sharing options...
Mchl Posted June 7, 2010 Share Posted June 7, 2010 in fact, the messages in the database are already filtered with htmlentities and looks like this: ouè man This is weird... Can you take a look at the code shoutbox uses to display messages to see if it's replacing these entities somehow? Because data sent to shoutbox seem to be enocded correctly. Quote Link to comment https://forums.phpfreaks.com/topic/203464-problem-with-accents/page/2/#findComment-1068879 Share on other sites More sharing options...
gdfhghjdfghgfhf Posted June 7, 2010 Author Share Posted June 7, 2010 well like i said when i check inside the database, the accents are already encoded with html entities and since the shoutbox display the accents correctly, there must be a way to do it... here is the script of the shoutbox i am using if this can help: http://qshout.borisding.com/download_qshout.php?action=download Quote Link to comment https://forums.phpfreaks.com/topic/203464-problem-with-accents/page/2/#findComment-1069175 Share on other sites More sharing options...
Mchl Posted June 7, 2010 Share Posted June 7, 2010 This code smells... Anyway, take a look at function retrieveChat() in qshout.php. Especially on these lines: $user = html_entity_decode($row["user"],ENT_QUOTES); $message = html_entity_decode($row["message"],ENT_QUOTES); $message = parseStringToHTTP($message); Quote Link to comment https://forums.phpfreaks.com/topic/203464-problem-with-accents/page/2/#findComment-1069184 Share on other sites More sharing options...
gdfhghjdfghgfhf Posted June 8, 2010 Author Share Posted June 8, 2010 thanks, i got it working now ! i tryed with html_entities_decode before but it didn't work, i don't understand why it works now... probably done something wrong when i first tryed it Quote Link to comment https://forums.phpfreaks.com/topic/203464-problem-with-accents/page/2/#findComment-1069245 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.