如何在Golang中取消对引用的八进制字符串的转义?
问题描述:
I have the following string:
`\303\250\303\252\303\256\303\264\303\247`
I need to convert it to
"èêîôç"
How can I do that?
Thanks
我有以下字符串: p>
`\ 303 \ 250 \ 303 \ 252 \ 303 \ 256 \ 303 \ 264 \ 303 \ 247`
code> pre>
我需要将其转换为 p>
“èêîôç”
code> pre>
我该怎么做? p>
谢谢 p>
答
Ok I got it
a := `"\303\250\303\252\303\256\303\264\303\247"`
b, err := strconv.Unquote(a)