Parsing a UTF-16LE file line by line?
Daniel Kozák via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jan 4 10:48:59 PST 2017
Daniel Kozák <kozzi11 at gmail.com> napsal St, led 4, 2017 v 6∶33 :
>
> 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
Ok, I've done some testing and you are right byLine is broken, so
please fill a bug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170104/4ce67928/attachment.html>
More information about the Digitalmars-d-learn
mailing list