I have a JSON file which begins with the UTF-8 byte-order marker (BOM) 0xEF 
0xBB 0xBF.

This causes Decode() to fail with SyntaxError:

SyntaxError invalid character 'ï' looking for beginning of value - Offset: 1


Is there any way to tell Decode() to ignore the BOM, or do I have to peek 
at the first 3 bytes and skip them somehow?


Thanks,

Mark



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