PeterDK Posted January 31, 2014 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...
Martijn Geerts Posted January 31, 2014 Posted January 31, 2014 Download TextWrangler or BBEdit and 'zap gremlins'. Be sure your files are saved in UTF-8 1
PeterDK Posted January 31, 2014 Author 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!
Martijn Geerts Posted January 31, 2014 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.
PeterDK Posted February 1, 2014 Author Posted February 1, 2014 Thank you very much, exactly what I was looking for!
Martijn Geerts Posted February 1, 2014 Posted February 1, 2014 You should use utf-8 everywhere always.
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