I realized that my program has to be able to handle special characters such as Japanese or Chinese. But I know the built-in type char
is far from enough. So how can I use these special characters in C program?
like this in windows VS :)
#include <tchar.h>
typedef struct _我的结构{
int 数据;
TCHAR 字符串指针[100];
}我的结构;
int main(int argc,char** argv){
我的结构 我的变量 = {1, _T("字符串123abc")};
_tprintf(_T("%s, %d"),我的变量.字符串指针,我的变量.字符串指针);
return 0;
}
You could use UTF-8 encoding if you could live with the fact that one byte != one unicode character.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With