spikypunker Posted March 23, 2009 Share Posted March 23, 2009 hi guys, have been developing a website over the lkast few weeks, have had some help from this fourm a lot! Here is is: http://www.maddogmagazine.co.uk Ive just added a news section and the idea is our contributers add thier own stories in using a web form etc. The problem i'm having is that people are obviously cut and pasting from a Word document. For some reason this is bringing in wierd commas that look slightly different than normal!? These don't display in the browser, but instead a ? is put in in Firefox and a square is put in in IE. Has anyone encountered this before?? Heres the link to specific page: http://www.maddogmagazine.co.uk/musicnews.php Cheers for any help guys! As i said before, people here have been a great help whilst developing the site so far, you rule! Chris Quote Link to comment https://forums.phpfreaks.com/topic/150729-character-display-issue/ Share on other sites More sharing options...
JonnoTheDev Posted March 23, 2009 Share Posted March 23, 2009 Try converting the character set of the string once it has been posted. This is a real ballache of an issue. mb_convert_encoding($string, "ISO-8859-1", "auto") Quote Link to comment https://forums.phpfreaks.com/topic/150729-character-display-issue/#findComment-791870 Share on other sites More sharing options...
spikypunker Posted March 23, 2009 Author Share Posted March 23, 2009 haha tell me about it! ok i tried this: $title = $_POST['title']; $content = $_POST['content']; $date = date("Y-m-d"); mb_convert_encoding($content, "ISO-8859-1", "auto") And got this error: Parse error: syntax error, unexpected T_STRING in /home/maddogma/public_html/news/newswrite.php on line 19 lol??? Quote Link to comment https://forums.phpfreaks.com/topic/150729-character-display-issue/#findComment-791887 Share on other sites More sharing options...
JonnoTheDev Posted March 23, 2009 Share Posted March 23, 2009 Bad Syntax $title = mb_convert_encoding($_POST['title'], "ISO-8859-1", "auto"); $content = mb_convert_encoding($_POST['content'], "ISO-8859-1", "auto"); $date = date("Y-m-d"); Quote Link to comment https://forums.phpfreaks.com/topic/150729-character-display-issue/#findComment-791898 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.