|
From: Steven R. L. <sr...@gm...> - 2024-12-20 01:35:55
|
Hi, Can you post the exact code you’re using? You may have chosen an encoding which includes a BOM. -s -- Steven R. Loomis Code Hive Tx, LLC https://codehivetx.us > On Dec 17, 2024, at 9:32 AM, Gregorio Litenstein <g.l...@gm...> wrote: > > While debugging some stuff related to text conversion, I have noticed that converting from UTF16 to UTF8 (via an intermediary `UnicodeString` and `toUTF8String`) results in a UTF8 string that starts with \xEF\xBB\xBF. Why is this BOM being appended to my string, and why does it only seem to happen when converting from UTF16? > > P.S. I am using icu4c 74.2 > > -- > You received this message because you are subscribed to the Google Groups "icu-support" group. > To unsubscribe from this group and stop receiving emails from it, send an email to icu...@un... <mailto:icu...@un...>. > To view this discussion visit https://groups.google.com/a/unicode.org/d/msgid/icu-support/72cd8a2b-6e86-4b94-85e7-a77aca1f031bn%40unicode.org <https://groups.google.com/a/unicode.org/d/msgid/icu-support/72cd8a2b-6e86-4b94-85e7-a77aca1f031bn%40unicode.org?utm_medium=email&utm_source=footer>. > > -- > You received this message because you are subscribed to the Google Groups "ICU - Team" group. > To unsubscribe from this group and stop receiving emails from it, send an email to icu...@un... <mailto:icu...@un...>. > To view this discussion visit https://groups.google.com/a/unicode.org/d/msgid/icu-team/72cd8a2b-6e86-4b94-85e7-a77aca1f031bn%40unicode.org <https://groups.google.com/a/unicode.org/d/msgid/icu-team/72cd8a2b-6e86-4b94-85e7-a77aca1f031bn%40unicode.org?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "icu-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to icu...@un.... To view this discussion visit https://groups.google.com/a/unicode.org/d/msgid/icu-support/0145A6E8-41A4-4057-8C64-A7673A62BF47%40gmail.com. |