ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> phpdoc
phpdoc
[PHP-DOC] #37009 [Bgs->Opn]: I got wrong letter Å and å !
by derick other posts by this author
Apr 8 2006 4:59AM messages near this date
[PHP-DOC] Notes Status, 15010 total | [PHP-DOC] #37009 [Bgs->Opn]: I got wrong letter Å and å !
ID:               37009
 Updated by:       derick@[...].net
 Reported By:      bengt at sm7jqb dot se
-Status:           Bogus
+Status:           Open
-Bug Type:         GD related
+Bug Type:         Documentation problem
 Operating System: RedHat Linux 7.3
 PHP Version:      4.4.1
 Assigned To:      pajoye
 New Comment:

This is not mentioned in the documentation, and another problem is that
latin2 doesn't have the swedish characters. I think you can use UTF8 but
that should be verified.


Previous Comments:
------------------------------------------------------------------------

[2006-04-08 10:56:24] pajoye@[...].net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You have to give latin2 (ISO-8859-2) strings or char.

------------------------------------------------------------------------

[2006-04-08 05:24:19] bengt at sm7jqb dot se

My eample is here http://sm7jqb.se/PHP/test_sv_jpeg.php

And the script, just taken from the book
<?php
$im = imagecreate(150, 30);
$bg = imagecolorallocate($im, 250, 250, 250);
$textcolor = imagecolorallocate($im, 0, 0, 0);

// write the string at the top left
imagestring($im, 5, 0, 0, "-Test-���-���-", $textcolor);
//My swedish letter �-� goes wrong, just this letter only!

// output the image
header("Content-type: image/jpeg");
imagejpeg($im);
?>  

My webhotel run 4.4.1 byt I have same truble at home with 4.1. and it
was the same problem with 4.0

------------------------------------------------------------------------

[2006-04-08 00:41:52] derick@[...].net

The built in fonts in GD all use latin2 which doesn't have your
characters in the same places as the latin1 you're using. ..

------------------------------------------------------------------------

[2006-04-07 16:49:26] pajoye@[...].net

Can you provide a 3-5lines script to reproduce your problem?

A static string, imagestring, imagepng, that's all.


------------------------------------------------------------------------

[2006-04-07 16:27:07] bengt at sm7jqb dot se

Hi,

It is basicly this line doing wrong

imagestring($im, $font, $px, $py, $text, $black);

And I think it is something wrong in the 'font' data !
You can se it here http://sm7jqb.se/PHP/
It is �L  it shuld be an �
The text on that button shuld be "Test-���-���"

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/37009

-- 
Edit this bug report at http://bugs.php.net/?id=37009&edit=1
Thread:
derick
pajoye

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved