vb.net 中的 Unicode [英] Unicode in vb.net

查看:34
本文介绍了vb.net 中的 Unicode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 vb.net 中使用 vb6 中可用的 Unicode?
在 vb.net 中是否有任何等效的 vb6 Unicode??

How to use Unicode available in vb6 in vb.net?
Is there any equivalent of vb6 Unicode in vb.net??

推荐答案

您是否使用 vbUnicode 将字节数组转换为字符串?喜欢下面的吗?

Are you using vbUnicode in order to convert a Byte Array to a String? Like the following?

StrConv(ByteArray, vbUnicode)

如果是这样,这是该函数的 .Net 等价物

If so this is the .Net equivalent of that function

Dim theString as String = System.Text.Encoding.Unicode.GetString(ByteArray)

这篇关于vb.net 中的 Unicode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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