以下代码给了我一个错误:
(uri-encode "Kidô senkan Nadeshiko")
也就是说,
vector-ref: index is out of range
index: 244
valid range: [0, 127]
vector: '#("%00" "%01" "%02" "%03" "%04" "%05" "%06" "%07" "%08" "%09" "%0A" "%0B" "%0C" "%0D" "%0E" "%0F" "%10" "%11" "%12" "%13" "%...
context...:
/usr/lib/racket/collects/net/uri-codec.rkt:197:6: for-loop
/usr/lib/racket/collects/net/uri-codec.rkt:195:0: encode
/usr/lib/racket/collects/racket/private/misc.rkt:87:7
我想uri-encode
并且uri-decode
只支持我可以从一些测试的来源推断出来的 ASCII,这里
所以我的问题是,在 github 或其他地方是否有一个库可以正确编码 unicode 字符串?还是我必须自己动手?