I am pretty confident that the entire file has been double encoded.
Due to a special relationship between iso-latin-1 and UTF-8, it's not really possible to double-encode.
produces the same output asencode('iso-latin-1', encode('UTF-8', $text))
encode('UTF-8', $text)
For the characters where it works,
produces the same output asencode('UTF-8', encode('iso-latin-1', $text))
encode('UTF-8', $text)
For the characters where it doesn't, you'll get a question mark ("?").
produces the same output asencode('iso-latin-1', encode('iso-latin-1', $text))
encode('iso-latin-1', $text)
The only combination where double-encoding is possible when using those encodings is
encode('UTF-8', encode('UTF-8', $text))
In reply to Re^5: Encoding problem
by ikegami
in thread Encoding problem
by grscott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |