Hi all,

The first problem is in the NoteImporter class.
In the the function guessEncoding there is a line:
  List<String> charsets = Arrays.asList("utf-8",
"iso-8859-1");
but the file has utf-16 encoding, so a decoder returns a
wrong string;
As result, the code should be corrected to:
  List<String> charsets = Arrays.asList("utf-8", "utf-16",
"iso-8859-1");

The second problem is that nuxeo does not properly treat a
text file even if it can not recognize the encoding.

Best regards

---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to