Help with Chinese Labels

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
kiatchan

Help with Chinese Labels

Post by kiatchan »

Hi there,

I've been using the following command to generate a label with Chinese text:

convert -background white -fill blue -pointsize 36 -font STCaiyun label:@c:\UTF\chs02.txt c:\UTF\caiyun.gif

- chs02.txt contains the Chinese text
- Chinese font is STCaiyun

The output is in a way successful. I do get a Chinese label, however, there is this question mark (?) at the front of the Chinese words each time - like this.. ?XXXXX, where X denotes a discrete Chinese character. I have tried with other Chinese fonts, but the result is the same, the question mark still appears in front of the Chinese words.

Would really appreciate it if someone could please help.

Thanks,
Kiatchan
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Help with Chinese Labels

Post by snibgo »

That would be the Byte Order Mark. See viewtopic.php?f=3&t=15720&p=56052
snibgo's IM pages: im.snibgo.com
Post Reply