|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-22 10:47 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 04:00:01 2025 UTC |
Description: ------------ I am Chinese, I an apologize for my poor English first. I can not navigate the image-created php file when I encode it as UTF-8, but it work very well when it is encoded as ANSI. My text editor are Dreamweaver and notepad, and my test it at platform Apache 2.00 and PHP 5.0.3! See you later! Reproduce code: --------------- <?php header("Content-type: image/png"); $img=imagecreate(50, 50); $color_bg = imagecolorallocate($img, 0, 0, 0); imagerectangle($img, 0, 0, 50, 50, $color_bg); $color_text = imagecolorallocate($img, 00, 255, 255); imagestring($img, 4, 0, 0, 'Hello', $color_text); imagepng($img); imagedestroy($img); ?> Expected result: ---------------- see