Hi,<br><br>Oh, yes, it really matters!<br><br>I carefully checked the error image, and found there are 3 bytes in the file header, which are the BOM of UTF-8.<br><br>Then I searched all php files with the following command and found the config.php was transferred to UTF-8 with BOM:<br>
<br><span style="font-family:courier new,monospace">grep -r -P "\xef\xbb\xbf" * --include=*.php</span><br style="font-family:courier new,monospace"><br>The reason why I transferred the config file is I wanted to customize the title with my site's Chinese name.<br>
<br>It's finally fixed after 1 week. Thank you very much!<br><br>Best Regards,<br>Liu Chang<br><br><div class="gmail_quote">On Sun, Apr 8, 2012 at 8:42 AM, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Saturday 07 April 2012 21:41:16 Liu Chang wrote:<br>
> The browser complains: "The image cannot be displayed because it contains<br>
> error.".<br>
> My PHP is able to output text to image, because the following code is<br>
> running OK.<br>
<br>
</div>This may happen when some spaces are output before or after the picture code.<br>
<br>
For this reason, it is recommended that all PHP files<br>
<br>
* start with the marker <?php as very first thing on the first line<br>
* don't include a closing ?> marker which is btw not required<br>
* are saved "without byte order mask (BOM)" by your text editor<br>
<span class="HOEnZb"><font color="#888888"><br>
Petko<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</div></div></blockquote></div><br>