Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文操作tip #68

Open
acclea opened this issue Apr 28, 2020 · 0 comments
Open

中文操作tip #68

acclea opened this issue Apr 28, 2020 · 0 comments
Labels

Comments

@acclea
Copy link

acclea commented Apr 28, 2020

在中文的操作过程中,遇到字符串的长度、截取等操作,如果直接使用 strlen、substr 等处理字符串,会在 VicWord.php 的 function getD(&$str, $i) 报错,由于中文的编码不同与英文,所以 需要用
mb_strlen、mb_substr 等,以 mb_开头的方法来处理字符串,不然会无法分词或者报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants