Mailinglist Archive: opensuse (3109 mails)
| < Previous | Next > |
[opensuse] help about php5 and utf8
- From: jdd <jdd@xxxxxxxxx>
- Date: Tue, 20 Feb 2007 09:31:34 +0100
- Message-id: <45DAB1E6.7020007@xxxxxxxxx>
Hello.
I wrote last year a php script to create photo dvd's with comments, using the exif comments.
example of the result:
http://media.dodin.free.fr/galerie_photo_web/public/dvd/index.html
manual in french http://dodin.org/mediawiki/index.php/CEDA
now, with php5, I have minor problems. the accents are no more displayed correctly.
I know little about php - I use this language because I started with a php script from an other source (but had then, alas, to rewrite it almost entirely).
I've seen some words about configuring a module to have utf8, but don't really understand it
$texte = wordwrap($texte, $nbrecaracteresparlignesiimghorizontale, "\n", 1);
echo $texte."\n";
prints the text _with_ the accents, but
ImageTTFText($img_out,$tailletexte,$angletexte,$textex,$textey,$couleurtexte,$nomdelapolicetexte,$texte);
gives an image with utf8 displayed as iso (I beg)
http://fr2.php.net/manual/en/function.imagettftext.php says:
Strings in UTF-8 encoding can be passed directly.
any idea?
thanks
jdd
--
http://www.dodin.net
Le manuel d'optique de Lucien Dodin
http://lesprismes.free.fr/optique/index.html
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
I wrote last year a php script to create photo dvd's with comments, using the exif comments.
example of the result:
http://media.dodin.free.fr/galerie_photo_web/public/dvd/index.html
manual in french http://dodin.org/mediawiki/index.php/CEDA
now, with php5, I have minor problems. the accents are no more displayed correctly.
I know little about php - I use this language because I started with a php script from an other source (but had then, alas, to rewrite it almost entirely).
I've seen some words about configuring a module to have utf8, but don't really understand it
$texte = wordwrap($texte, $nbrecaracteresparlignesiimghorizontale, "\n", 1);
echo $texte."\n";
prints the text _with_ the accents, but
ImageTTFText($img_out,$tailletexte,$angletexte,$textex,$textey,$couleurtexte,$nomdelapolicetexte,$texte);
gives an image with utf8 displayed as iso (I beg)
http://fr2.php.net/manual/en/function.imagettftext.php says:
Strings in UTF-8 encoding can be passed directly.
any idea?
thanks
jdd
--
http://www.dodin.net
Le manuel d'optique de Lucien Dodin
http://lesprismes.free.fr/optique/index.html
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |