|
From: | Foucault, Heather |
Subject: | [bug-gnu-libiconv] Cygwin iconv (GNU libiconv 1.13) - possible bug |
Date: | Thu, 1 Sep 2011 00:14:09 +0000 |
I am trying to convert a file on my windows XP machine running cygwin. I need the file to be UTF-16LE. However, iconv does not write the byte order marks when specifying the endian-ness. $ echo "abc" | iconv -f ASCII -t UTF-16 | od -c 0000000 376 377 \0 a \0 b \0 c \0 \n 0000012 $ echo "abc" | iconv -f ASCII -t UTF-16LE | od -c 0000000 a \0 b \0 c \0 \n \0 0000010 $ echo "abc" | iconv -f ASCII -t UTF-16BE | od -c 0000000 \0 a \0 b \0 c \0 \n 0000010 Am I missing something ? why does the standard UTF-16 give the BOM “376 377” , but the other two do not ? Do I have to explicitly add it ? Heather Foucault |
[Prev in Thread] | Current Thread | [Next in Thread] |