Multibyte and Wide Characters
来源:互联网 发布:为何需要元数据系统 编辑:程序博客网 时间:2024/03/29 13:16
在MSDN上的介绍
A multibyte character is a character composed of sequences of one or more bytes. Each byte sequence represents a single character in the extended character set. Multibyte characters are used in character sets such as Kanji.
Wide characters are multilingual character codes that are always 16 bits wide. The type for character constants is char; for wide characters, the type is wchar_t. Since wide characters are always a fixed size, using wide characters simplifies programming with international character sets.
The wide-character-string literal L"hello" becomes an array of six integers of type wchar_t.
The Unicode specification is the specification for wide characters. The run-time library routines for translating between multibyte and wide characters include mbstowcs, mbtowc, wcstombs, and wctomb.
Reference
multibyte characters指的是多字节表示一个字符。
multibyte characters是MS制定的标准,界于UNICODE和ANSI字符之间,所有小于127的字符都用一个字节表示自己,如‘A '用0x41即可;所有大于127字符都表示它是个领头字节,将同后面一个字节联合起来表示一个字符,如中文字符。因此它的结尾符只需一个字节0x00.
- Multibyte and Wide Characters
- C Reference Manual Reading Notes: 003 Multibyte and Wide Characters
- swprintf() — Format and Write Wide Characters to Buffer
- convert narrow characters to wide characters
- [Linux]: rar e Invalid or incomplete multibyte or wide character
- AJAX and Multibyte Character Support
- byte oriented and wide oriented
- converting to execution character set: Invalid or incomplete multibyte or wide character
- error: converting to execution character set: Invalid or incomplete multibyte or wide character
- Building and Managing Enterprise-Wide Portals
- Characters and symbols
- ASCII and binary characters
- Strings and Characters.md
- Lotus and Characters
- Lotus and Characters
- hdu6011 Lotus and Characters
- HDU6011 Lotus and Characters
- Lotus and Characters
- SQL Server -- ALTER TABLE
- 我国各省市县的名称列表
- 芯片
- MyEclipse详解以及MyEclipse7.5的优化
- 关于用glRect*()画矩形的问题
- Multibyte and Wide Characters
- 【百度地图API】如何在地图上添加标注?——另有:坐标拾取工具+打车费用接口介绍
- 关于EXPORT_SYMBOL_GPL()问题【转】
- 同事工作笔记
- JDK1.6环境变量
- 3D游戏中的场景管理(八叉树和BSP树简介)
- 大型网站架构演变和知识体系
- SQL Server-- CREATE PARTITION FUNCTION
- 实现异步写文件到磁盘