Re: [go-nuts] encoding/json character escaping question

2019-10-05 Thread Poussier William
Thank you David for the detailled answer. Le samedi 5 octobre 2019 20:48:11 UTC+2, David Finkel a écrit : > > > > On Thu, Oct 3, 2019 at 11:11 AM Poussier William > wrote: > >> Hello >> >> The encoding/json package escapes 0xA (line feed), 0xD (carriage return

[go-nuts] encoding/json character escaping question

2019-10-03 Thread Poussier William
Hello The encoding/json package escapes 0xA (line feed), 0xD (carriage return) and 0x9 (horizontal tab) using the escape character '\'. However, when it comes to 0x8 (backspace) and 0xc (form feed), it uses the Unicode escape sequence staring with '\u'. Reproducer: https://play.golang.org/