[Patch] The IconvStringTranscoder inserts BOM when converting to UTF-16

Create issue
Issue #921 resolved
Pavlos Touboulidis created an issue

Using stringToUTF16() results in a UTF-16 string that's prefixed with the BOM 65279 (0xFEFF). This is hard to notice because the character in question is invisible when printed but it's there.

Reproducibility: always

Steps to reproduce: Use stringToUTF16() under Linux (or wherever the iconv implementation is used) and check the value of the first character returned.

Additional information: See also: * https://lists.gnu.org/archive/html/bug-gnu-libiconv/2012-01/msg00001.html * http://superuser.com/a/381132

OS: Linux, OS build: Arch, Platform: x86_64

Comments (1)

  1. Log in to comment