We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84b173f commit 45139deCopy full SHA for 45139de
1 file changed
autoload/webapi/json.vim
@@ -76,7 +76,7 @@ function! webapi#json#decode(json)
76
let json = substitute(json, '\n', '', 'g')
77
let json = substitute(json, '\\u34;', '\\"', 'g')
78
if v:version >= 703 && has('patch780')
79
- let json = substitute(json, '\\u\(\x\x\x\x\)', '\=nr2char(str2nr(submatch(1), 16), 1)', 'g')
+ let json = substitute(json, '\\u\(\x\x\x\x\)', '\=iconv(nr2char(str2nr(submatch(1), 16), 1), "utf-8", &encoding)', 'g')
80
else
81
let json = substitute(json, '\\u\(\x\x\x\x\)', '\=s:nr2enc_char("0x".submatch(1))', 'g')
82
endif
0 commit comments