Unicode BOM header
Posted: 2010-03-06T23:51:19-07:00
Windows 7, IM 6.5.8-8:
convert -size 1920x1080 -gravity South ^
-background None ^
-fill blue ^
-font Verdana -pointsize 100 ^
caption:@captCopy.txt ^
captCopy.png
captcopy.txt is encoded in UTF-8:
{ef}{bb}{bf}Copyright {c2}{a9} 2010 Alan Gibson\r\n
Where {ef} is the single byte, represented in hex as EF, etc.
The first three bytes are the UTF byte order mark, commonly added by Windows software to indicate UTF coding.
ImageMagick correctly interprets {c2}{a9} as the copyright symbol, but writes a question mark for {ef}{bb}{bf}. Could it please ignore BOM?
convert -size 1920x1080 -gravity South ^
-background None ^
-fill blue ^
-font Verdana -pointsize 100 ^
caption:@captCopy.txt ^
captCopy.png
captcopy.txt is encoded in UTF-8:
{ef}{bb}{bf}Copyright {c2}{a9} 2010 Alan Gibson\r\n
Where {ef} is the single byte, represented in hex as EF, etc.
The first three bytes are the UTF byte order mark, commonly added by Windows software to indicate UTF coding.
ImageMagick correctly interprets {c2}{a9} as the copyright symbol, but writes a question mark for {ef}{bb}{bf}. Could it please ignore BOM?