On 09/03/2017 03:03 AM, ag0aep6g wrote:
> On 09/03/2017 01:39 AM, Ali Çehreli wrote:
>> If we can convert byte-by-byte, we should be able to
>> convert back byte-by-byte, right?
>
> You weren't converting byte-by-byte.

In my mind I was! :o)

> Or maybe just convert everything to UTF-8 first. That also sidesteps any
> endianess issues.

Good point.

> Still fails with UTF-16 and UTF-32 strings:

I think I can make it work with a few more iterations but I'll leave it as an exercise for the author.

Ali

Reply via email to