For example, I created utf-8 and unicode text files which in Times-New-Roman font contain four symbols: upper case greek PI, upper case greek sigma, upper half of the integral sign and the lower half of the integral sign.
The command using utf-8 is:
Code: Select all
convert -font Times-New-Roman -pointsize 36 "label:@times_utf.txt" times_utf.png
but the unicode command:
Code: Select all
convert -font Times-New-Roman -pointsize 36 -encoding Unicode "label:@times_unicode_hi.txt" times_uni_hi.png
I thought it might be a problem with little/big-endianness so I swapped each pair of bytes in the file to produce times_unicode_lo.txt:
Code: Select all
convert -font Times-New-Roman -pointsize 36 -encoding Unicode "label:@times_unicode_hi.txt" times_uni_lo.png
The text files are (use right click to download):
times_utf.txt
times_unicode_hi.txt
times_unicode_lo.txt
How do I get IM to handle unicode in a file?
Pete