将unsigned char数据类型转换为unicode [英] Converting unsigned char datatype to unicode

查看:175
本文介绍了将unsigned char数据类型转换为unicode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好程序员,



可能是一个非常简单的问题..因为我是unicode世界的新手。



如何将 unsigned char 数据类型转换为等效的unicode。



据我所知, tchar.h 有所有unicode相关的数据类型,我们需要使用这个头文件并用TCHAR替换所有的char ...但我不确定unsigned char ??



我应该改变为未签名的TCHAR ????









问候,

Joy

Hello Programmers,

May be very simple question..infact I am new in unicode world.

How to convert unsigned char datatype to unicode equivalent.

As I understand, tchar.h has all unicode related datatypes, we need to use this header file and replace all char with TCHAR...but I am not sure about unsigned char??

Should I change as unsigned TCHAR????




Regards,
Joy

推荐答案

tchar.h中有 _TUCHAR 的定义无符号字符,但这取决于您的使用情况,这是否是正确的类型。
There is a definition for _TUCHAR in tchar.h for unsigned character, but it will depend on your usage whether this is the right type.


这篇关于将unsigned char数据类型转换为unicode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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