Overview
| Artifact ID: | d83e73431ee3b2f3a8fb44f7c81e8737558e12f8 |
|---|---|
| Ticket: | 3466099fffffffffffffffffffffffffffffffff
BOM in Unicode |
| User & Date: | sebres on 2012-03-02 17:05:15 |
Changes
- icomment:
The solution with cpBomTable is although good, but theoretically the parameter 'encodingName' could be another single byte encoding such iso8859-X, etc. So the prepared array 'cpBomTable' should be greater and it will be no more practical. I see 2 solution here: 1) read 4 first characters binary, if not BOM convert its to given 'encodingName', set channel encoding to 'encodingName', read further. 2) read 1 first characters in utf-8, if not BOM seek to start, set channel encoding to 'encodingName', read further. I'm trying now the solution number 1.
- login: "sebres"
- mimetype: "text/plain"
- username: "sebres"