You didn't understand my question.
Here is the background:
- The text file is valid UTF-8 text (with no BOM). This has been verified.
- My PHP outputs UTF-8, using Content-Type: text/html; charset=UTF-8.
- I expected to be able to use include() to include the UTF-8 file, but I was wrong.
- If I convert my included UTF-8 to ISO-8559-1, using utf8_decode(), it works.
- It seems inefficient for the UTF-8 text to be converted by the PHP script to ISO-8559-1 so that PHP can convert it back again to UTF-8. This must be making it slow and it must mean that it can only handle characters which can be converted to ISO-8559-1.
Here is my question:
- How do I make my PHP work internally in UTF-8 rather than ISO-8559-1?





by: shadow_shooterPosted on 2008-11-06 at 18:10:25ID: 22901518
You can simply change the character set of the content to utf8 by special software. I recommend you to use notepad++ but you can google it and there should be a lot of documents explaining how to do it.
If you couldn't do it, let me know.