为什么*.bib
里写全宽逗号会报错syntax error: found "茂录聦", expected end of entry ("}" or ")")
#455
YDX-2147483647
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
显示日志
biber main.bcf
会把日志存到main.blg
里,这个文件中存的字节是b'\xc3\xaf\xc2\xbc\xc2\x8c'
,它按 GB 18030 解码是'茂录聦'
,按UTF-8解码是'ï¼\x8c'
。因此,有些环境下报错说found "茂录聦"
,有些则说found "ï¼\x8c"
。生成日志
那么为什么会有
b'\xc3\xaf\xc2\xbc\xc2\x8c'
呢?将全宽逗号','
按UTF-8编码,然后将结果作为Unicode码位再按UTF-8编码,两次编码后即为这串字节。验证
往
*.bib
里写各种乱七八糟东西,发现报错都符合预期。Beta Was this translation helpful? Give feedback.
All reactions