I have a UTF-8 file and using the following codes to get the file content.
var file = Ti.Filesystem.getFile('myfile.html'); var htmlContent = file.read().text; Ti.API.debug(htmlContent);It works fine until I have a file containing the LINE SEPARATOR, i.e. Unicode:
U+2028 or UTF-8(hex.): e2 80 a8
The printout of htmlContent shows that text after LINE SEPARATOR are all truncated.
Why and how to fix this without modifying the file?