Bug #2086
RCP: X.X, manage BOM
Status: | New | Start date: | 03/28/2017 | |
---|---|---|---|---|
Priority: | Urgent | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | Import | Spent time: | - | |
Target version: | TXM 0.8.2 |
Description
Source files encoded in Unicode can have a BOM (3 bytes).
Every Java and Groovy code should skip the BOM if needed.
Solution¶
add the following code to all Java and Groovy code using FileReaders:
input.skip(new DetectBOM(infile).getBOMSize())Already done for:
- AlcesteToXML script
- TXT2TRS script
History
#1 Updated by Matthieu Decorde almost 4 years ago
- Description updated (diff)
#2 Updated by Sebastien Jacquot over 2 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#3 Updated by Matthieu Decorde almost 2 years ago
- Target version changed from TXM 0.8.0 to TXM 0.8.2