Page 1 of 1

Problems in national characters

Posted: 2008-06-24T02:28:42-07:00
by revacomp
I use IM on Windows XP. I try to create national characters (é, è, à, ù, ç, ...) through the command line -annotate. I have tried all kind of syntax but I can't get no correct characters created. I read all documentation and tried all examples but none of them work properly. I tried with several other fonts but no changes.

Example:
convert test.png -font Lucida-Handwriting-Italique -pointsize 48 -fill "rgb(79,79,79)" -annotate +220+288 "Zéro heure" test1.png

The é character is replaced by a U character with accent, the € is replaced by a upper ç ... !

Any help ?

Re: Problems in national characters

Posted: 2008-06-24T10:12:33-07:00
by fmw42

Re: Problems in national characters

Posted: 2008-06-24T12:52:02-07:00
by el_supremo
I tried your convert command on my WinXP Pro system with IM 6.4.1.
I used the string "Zéro heure é, è, à, ù, ç" and it generates the correct characters in the output image.
I don't know why it would fail for you.

Pete

Re: Problems in national characters

Posted: 2008-06-24T13:15:55-07:00
by Bonzo
This works OK for me:

Code: Select all

convert -size 500x400 xc:none -pointsize 48 -fill "rgb(79,79,79)" -annotate +220+288 "Zéro heure" test1.png
Version 6.4.0

Re: Problems in national characters

Posted: 2008-06-25T22:44:39-07:00
by anthony
I have updated the Unicode section of IM examples in response to this, and to show that if you can use such a character on the command line, then IM can work with them in this way.
http://imagemagick.org/Usage/text/#unicode

However you are still better to pipe in such UTF-8 binary data, as it is safer, and may avoid other problems caused by such binary data.