hey everone! I have a problem which has been baffeling me for a while now. Have a look at http://www.thewebmasterstool.com/erfc/report.php?id=61 and compare it with http://www.thewebmasterstool.com/erfc/report1.php?id=61 Both use the same PHP script but one is in a template and the other is the basic script. Any ideas how I can sort this? Thanks
my guess is the second link looks like a word doc.. Word is famous for inserting wierd things, and if you just copied and pasted it will copy the wierd stuff. My suggestion is to edit the second link outside of word, like notepad, then reinsert. That will get rid of the wierd stuff
it's using exactly the same database text. only difference is one is in a script and the other isn't :S when I look at the text in phpmyadmin too it seems alright.
hmmmm that is oddd.... Try taking it out of PHPadmin alter in Notepad and reinsert..... I have only seen the weird characters like that, come out of word... it happened to me the other day.. lol
the thing is, it's typed in MS Word, then copied into a WYSIWYG editor which saves the characters well. So a different char-set, what are the possible options? and what char-set does MS Word use?
Windows applications, and many Win oriented editors seem to default to Windows-1252. Your server response header doesn't set a character encoding, so the browser looks to the meta http-equiv. You've set utf-8, which is a good choice. Since it was saved in the Win proprietary encoding, there are many character entities that are invalid in ASCII, iso-8859-1, and utf-8; for example, quotes and hyphens. Open the file in your editor, and "save as". Select utf-8 (no bom). Do not select unicode, or utf-x with bom. That should get things ok. Then, do not ever, and I mean never, use a word processor for web stuff. Use a plain text editor. cheers, gary