I have written code and save them into PHP file as UTF-8 encoding using UltraEdit.
But it happens that image loading doesn't work. I wonder what can be done to get around this problem... the code looks like this...
<?php
header("Content-type: image/jpeg");
readfile("image.jpg");
?>
It works if I encoded my PHP file to ASCII DOS/UNIX format... but not U8-DOS (UTF-8).
I'm sure there's a workaround to this image problem. I need help from people who use UltraEdit or encode pages in UTF-8.
I have worked on other PHP pages that are encoded in UTF-8 format and there's not reason why it shouldn't work like the rest. I'm just probably unsure about how to do it. I'm not a real geek in UTF-8.
There are a couple of functions in the mbstring extension. Probably someone can tell me how to use them...
Thanks in advance.