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
windows平台下ltp_test运行<arg />乱码 #116
Comments
谢谢报bug,我们会尽快修复这个问题。 |
这个是windows terminal显示utf8的问题 |
是这样,windows终端是gbk编码。所以从终端输入的(std:cin)和向终端输出的(std::cout)字符串都被解释成gbk了。 而ltp向终端输出了一个utf8编码的字符串,如果被解释成gbk的,就会显示乱码。 所以在windows终端下使用ltp工作的方法是将待分析的数据用utf8保存,然后用 |
问题解决了。谢谢! |
请问你是怎么解决的? |
Oneplus已经给了回答了:http://ltp.readthedocs.org/zh_CN/latest/ltptest.html#id8 由于Windows终端采用gbk编码显示,运行 ltp_test 后会在终端输出乱码。您可以将标准输出重定向到文件,以UTF8方式查看文件,就可以解决乱码的问题。 |
请问你有在VS下运行成功过吗? |
windows 终端显示utf-8的问题,可以先输入指令: |
@pheelyli 感谢反馈 |
问题已解决,故关闭改问题。 |
ltp-3.3.0 release version
cmake2.8.12.2+VS2010编译,运行ltp_test,输出中的arg 的type属性值是乱码。Linux编译运行是没问题的。
注:输入输出都已转换为utf-8无bom格式。
谢谢~~
The text was updated successfully, but these errors were encountered: