Parsing a UTF-16LE file line by line?

Daniel Kozák via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 4 09:33:39 PST 2017


Nestor via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> 
napsal St, led 4, 2017 v 12∶03 :
> Hi,
> 
> I was just trying to parse a UTF-16LE file using byLine, but 
> apparently this function doesn't work with anything other than UTF-8, 
> because I get this error:
> 
> "Invalid UTF-8 sequence (at index 1)"
> 
> How can I achieve what I want, without loading the entire file into 
> memory?
> 
> Thanks in advance.
can you show your code, byLine should works ok, and post some example 
of utf16-le file which does not works
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170104/09a41ca8/attachment.html>


More information about the Digitalmars-d-learn mailing list