我如何得到VB6的字符集使用? [英] How can I get the charset VB6 is using?

查看:131
本文介绍了我如何得到VB6的字符集使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要找出什么是我的VB6应用程序使用的字符集(编码)。有什么功能吗?类似于VB.net中的Encoding.Default?



我将这个程序转换为Java,他们都打印相同的ASCII代码,但是结果不同charset windows-1252)。



感谢

解决方案

VB6中的字符串是Unicode,UCS-2。



从系统的角度来看,VB6应用程序是一个非Unicode应用程序,使用非unicode应用程序的当前系统字符集。 / p>

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?

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).

Thanks

解决方案

From internal point of view, strings in VB6 are Unicode, UCS-2.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆