bobgodwin Posted April 4, 2009 Report Share Posted April 4, 2009 Wondered why the character encoding isn't being picked up right. I have doc types declared UTF-8 but they show up as ISO-8859-1. They're right online and on another WAMP server I run. I've tried several changes to various .ini (php, apache) files, but can't get it to work. Quote Link to comment Share on other sites More sharing options...
BananaAcid Posted April 4, 2009 Report Share Posted April 4, 2009 did you SAVE the text/html file as UTF-8 ? declerations dont work if the chars to show are "ISO" chars, for example pasting from another document, some editors might not "migrate" the chars (they try to map the chars into UTF-8 with custom functions - wont always work. same for editors not supporting UTF-8/UTF-16) Quote Link to comment Share on other sites More sharing options...
BananaAcid Posted April 16, 2009 Report Share Posted April 16, 2009 for parsing through php, this code line helps header("Content-Type: text/html; charset=UTF-8"); or any charset. usually: this forces the "delivery" of the text by to a specific charset headers have to be set before anything else. (the first line in your script right after <?php. make sure you have no whitespaces before that ! Quote Link to comment 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.