语言的代码页问题 [英] Code page issue for languages
本文介绍了语言的代码页问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Czeh语言的代码页和没有的语言是什么?请告诉我
文件将是ansi和我将根据代码页读取数据并转移到unicode
what is the code page for Czeh language and the languages which dont have ?.please let me know
file will be ansi and i will read the data and convet to unicode based on the code page
推荐答案
它是867或895.但这并不意味着你应该真的使用它。代码页的概念已经过时了。
请参阅: http://en.wikipedia.org/wiki / Code_page [ ^ ]。
如果您只需要支持该语言,则需要使用Unicode:
http://en.wikipedia.org/wiki/Unicode [ ^ ],
http://unicode.org [ ^ ],
MFC中的Unicode: https://msdn.microsoft.com/en-us/library/wsdfs47e.aspx [ ^ ]。
Windows,在内部,对内存中的表示字符串使用UTF-16LE编码d代码页1200分配给它:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx [ ^ ]。
在交换我们的评论后,我不知道你使用的编码,但我希望你知道你输入的字符代码。然后转码根本不会成为问题,即使在最坏的情况下也是如此。但请看: https://msdn.microsoft.com/en-us/library/cc488003。 aspx [ ^ ]。
-SA
It's 867 or 895. But it does not mean you should really use it. The concept of code page is pretty much obsolete.
Please see: http://en.wikipedia.org/wiki/Code_page[^].
If you just need to support the language, you need to use Unicode:
http://en.wikipedia.org/wiki/Unicode[^],
http://unicode.org[^],
Unicode in MFC: https://msdn.microsoft.com/en-us/library/wsdfs47e.aspx[^].
Windows, internally, uses UTF-16LE encoding for representation strings in memory, and code page 1200 is assigned to it:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx[^].
After exchanging our comments, I don't know what encoding you use, but I hope you know the character codes you have on input. Then transcoding won't be a problem at all, even in worst case. But fist, please see: https://msdn.microsoft.com/en-us/library/cc488003.aspx[^].
—SA
这篇关于语言的代码页问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文