Overview
| Artifact ID: | 4e3967699da563082455786d3cf03923749f01b4 |
|---|---|
| Ticket: | 2910093fffffffffffffffffffffffffffffffff
Byte-order mark symbol is decoded as \uFEFF |
| User & Date: | a_kovalenko on 2009-12-07 16:13:53 |
Changes
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- comment changed to:
There is a byte-order mark mechanism in Unicode encodings, used to identify the byte-order of UCS2, UCS4 etc, and to identify that the stream IS utf-8. When a string is converted from utf-8 (or from "unicode", which is UCS2 in native byte order), byte-order mark becomes \uFEFF and appears in the output. It's theoretically useful for applications that have to distinguish between marked and unmarked files or strings, but it creates obscure difficulties for all other applications. I don't know what should be done (ignoring BOM when converting from utf-8 may be not a good option), but we need at least _some_ way to convert data from unicode/utf-8 that doesn't leave byte order mark in the internal string representation. Maybe some new encoding(s) should be introduced, like unicode-bom (autodetecting between utf-8,ucs2-LE/BE etc on input, stripping BOM on input, appending BOM on output). I'm not sure what is to be done (and even unsure that the problem is to be solved on TCL level).
- foundin changed to: "obsolete: 8.6b1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "a_kovalenko"
- subsystem changed to: "44. UTF-8 Strings"
- title changed to: "Byte-order mark symbol is decoded as \uFEFF"
- type changed to: "RFE"