php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33812 GD
Submitted: 2005-07-22 03:04 UTC Modified: 2005-07-22 10:47 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: propheteia at gmail dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.0.3 OS: Windows XP Pre
Private report: No CVE-ID: None
 [2005-07-22 03:04 UTC] propheteia at gmail dot com
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-22 10:47 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 23:01:33 2025 UTC