Sam,

"I'd be suprised if Windows didn't understand UTF-8 these days,"

Be surprised! For Unicode, Microsoft Windows uses UTF-16.

Peter

On Sunday, May 7, 2017 at 11:29:53 AM UTC-4, Sam Whited wrote:
>
> On Sun, May 7, 2017 at 9:44 AM, rob solomon <drro...@verizon.net 
> <javascript:>> wrote: 
> > I now understand that the bytes may be different. 
>
> It's also worth noting that when Ken Thompson and Rob Pike (yes, the 
> same Rob Pike and Ken Thompson that created Go) created UTF-8, they 
> made sure it was backwards compatible with ASCII. Any characters that 
> are representable in ASCII will be the exact same bytes when encoded 
> to UTF-8. I'd be suprised if Windows didn't understand UTF-8 these 
> days, so it may be that you really don't need to "convert" your file 
> at all. 
>
> Here's a fun introduction to Unicode (with a brief discussion of 
> encoding methods), if you're interested: 
>
> http://reedbeta.com/blog/programmers-intro-to-unicode/ 
>
> —Sam 
>

-- 
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