为什么*.bib里写全宽逗号会报错syntax error: found "茂录聦", expected end of entry ("}" or ")")
#455
Closed
YDX-2147483647
started this conversation in
Show and tell
Replies: 1 comment
-
|
为方便大家查看,这个问题归档到了 🥑 疑难杂症 (bithesis.bitnp.net/faq),后续将在那边更新。如果遇到新问题,欢迎继续在 GitHub Discussions 讨论。 https://bithesis.bitnp.net/faq/bib-comma.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
显示日志
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