You can’t just “change the encoding”. You need to read the strings as utf16.

See https://gist.github.com/bradleypeabody/185b1d7ed6c0c2ab6cec

> On Nov 20, 2018, at 1:43 PM, Alex Dvoretskiy <advoretski...@gmail.com> wrote:
> 
> Yes, it's encoded in UCS-2, UTF-16.
> 
> Should I just change encoding to UTF-8?
> 
> What if I can't change encoding?
> 
> 
>> On Tuesday, November 20, 2018 at 11:36:24 AM UTC-8, Ian Lance Taylor wrote:
>> On Tue, Nov 20, 2018 at 11:30 AM, Alex Dvoretskiy 
>> <advore...@gmail.com> wrote: 
>> > go version go1.10 windows/386 
>> 
>> Is your input file encoded using UCS-2 aka UTF-16? 
>> 
>> Ian 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to