Bug #2086

RCP: X.X, manage BOM

Added by Matthieu Decorde over 2 years ago. Updated 5 months ago.

Status:New Start date:03/28/2017
Priority:Urgent Due date:
Assignee:- % Done:

0%

Category:Import Spent time: -
Target version:TXM 0.8.1

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 over 2 years ago

  • Description updated (diff)

#2 Updated by Sebastien Jacquot about 1 year ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#3 Updated by Matthieu Decorde 5 months ago

  • Target version changed from TXM 0.8.0 to TXM 0.8.1

Also available in: Atom PDF