On Jun 26, 2017 9:02 AM, "Simon Slavin" <slav...@bigfraud.org> wrote:
There is no convention for "This software understands both UTF-16BE and UTF-16LE but nothing else.". If it handles any BOMs, it should handle all five. However, it can handle them by identifying, for example, UTF-32BE and returning an error indicating that it can’t handle any encodings which aren’t 16 bit. Try to be consistent across all fields in your protocol/API. References: <http://unicode.org/faq/utf_bom.html> +1 FAQ quote: Q: When a BOM is used, is it only in 16-bit Unicode text? A: No, a BOM can be used as a signature no matter how the Unicode text is transformed: UTF-16, UTF-8, or UTF-32. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users