[bugfix] CodeUtils::utf8ToUnicode对某些字符不能正确进行UTF8到Unicode转换#310
Open
toruneko wants to merge 6 commits intoknightliao:masterfrom
toruneko:master
Open
[bugfix] CodeUtils::utf8ToUnicode对某些字符不能正确进行UTF8到Unicode转换#310toruneko wants to merge 6 commits intoknightliao:masterfrom toruneko:master
toruneko wants to merge 6 commits intoknightliao:masterfrom
toruneko:master
Conversation
Author
|
发现一个新的bug。 但是在ConfigMgr::convert 中 调用getZkData,进行zk和db数据比较时,用的Config,即unicode。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
如果chr1的高位是0,Integer.toHexString会出现丢失前导0的情况。
所以需要判断并补上丢失的0,再进行16进制转换
比如中文间隔号 · 转换结果是\ub7,正确结果是\u00b7