Portuguese charset problem Portuguese charset problem codeigniter codeigniter

Portuguese charset problem


What's the encoding of the file in Eclipse set to? Right-Klick on the file in Eclipse, check under "Properties". It must be the same as in your meta-tag.


thanks so much, i believe your answer is the best one:

$string = 'café'; utf8_decode($string); 

OR

$string = 'café'; utf8_encode($string);

with meta charset in the header of each file, the issue of portugues characters will be solved.


Why don't you switch to UTF-8?

edit You might also want to switch to using entities.

é would be the é

http://www.w3schools.com/tags/ref_entities.asp