如何获取 VB6 正在使用的字符集? [英] How can I get the charset VB6 is using?
问题描述
我需要找出我的 VB6 应用程序使用的字符集(编码)是什么.有什么功能吗?类似于 VB.net 中的 Encoding.Default?
I need to find out what's the charset (encoding) my VB6 application is using. Is there any function? Something like Encoding.Default in VB.net?
我正在将此程序转换为 Java,它们都打印相同的 ASCII 代码,但结果不同(Java 使用字符集 windows-1252).
I'm converting this program to Java and they both print the same ASCII codes, but with different results (Java is using charset windows-1252).
谢谢
推荐答案
从内部来看,VB6 中的字符串是 Unicode、UCS-2.
From internal point of view, strings in VB6 are Unicode, UCS-2.
从系统的角度来看,VB6 应用程序是一个非 unicode 应用程序,它使用 非 unicode 应用程序的当前系统字符集.
From system point of view, a VB6 app is a non-unicode application that uses the current system character set for non-unicode applications.
这篇关于如何获取 VB6 正在使用的字符集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!