PeterDK Posted January 31, 2014 Share Posted January 31, 2014 Why is my french page littered with weird characters? http://new.huurvillafrankrijk.be/fr/reservation/prix/ The dutch version doesn't have this http://new.huurvillafrankrijk.be/nl/reservatie/prijzen/ I'm using Hanna code to produce that section... Link to comment Share on other sites More sharing options...
Martijn Geerts Posted January 31, 2014 Share Posted January 31, 2014 Download TextWrangler or BBEdit and 'zap gremlins'. Be sure your files are saved in UTF-8 1 Link to comment Share on other sites More sharing options...
PeterDK Posted January 31, 2014 Author Share Posted January 31, 2014 I'm not putting the weird characters in myself, just can't open an editor and edit the file that is misbehaving... It's Hanna code that does the output, see https://gist.github.com/PeterDeKeer/1c3a7daefe7ae271e0eb There are two lines outputting the month of the year in full name fasion 'December'. In french they have accents, and those are misbehaving. $output .= strftime("%d %B %Y",$verhuurprijs->startdatum); Could you (gently) move me in the right direction? Thanks so far Martijn! Link to comment Share on other sites More sharing options...
Martijn Geerts Posted January 31, 2014 Share Posted January 31, 2014 It has to do with charactersets. Those question marks tells that the characters are not mapped (anymore). This can happen when there was a change in how the charactersets were saved. Link to comment Share on other sites More sharing options...
Soma Posted January 31, 2014 Share Posted January 31, 2014 U need to set locale to utf8 like fr_FR.utf8 Link to comment Share on other sites More sharing options...
PeterDK Posted February 1, 2014 Author Share Posted February 1, 2014 Thank you very much, exactly what I was looking for! Link to comment Share on other sites More sharing options...
Martijn Geerts Posted February 1, 2014 Share Posted February 1, 2014 You should use utf-8 everywhere always. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now