how to change the output encoding, while displaying a file through php
+3
A:
Use header('Content-type: text/foo; charset=bar'); to set the appropriate encoding, and use iconv to change the actual encoding of the file you are displaying if it does not match.
Victor Nicollet
2009-12-22 18:12:19