Delphi XE5教程10:Delphi字符集
2014-02-19 21:13
337 查看
内容源自Delphi XE5 UPDATE 2官方帮助《Delphi Reference》,本人水平有限,欢迎各位高人修正相关错误!
也欢迎各位加入到Delphi学习资料汉化中来,有兴趣者可QQ:34484690@qq.com
1 The Delphi Character Set
1 Delphi字符集
The Delphi language uses the Unicode character encoding for its character set, including alphabetic and alphanumeric Unicode characters and the underscore. Delphi is not case-sensitive. The space character and control characters (U+0000 through U+001F including U+000D, the return or end-of-line character) are blanks.
Delphi语言采用Unicode字符编码作为其字符集,包括英文字母和字母数字的Unicode字符和下划线的Unicode字符编码。 Delphi是不区分大小写的。空格字符和控制字符(U +0000到U +001F包括U +000D,返回或行尾的字符)显示为空白。
The RAD Studio compiler will accept a file encoded in UCS-2 or UCS-4 if the file contains a byte order mark. The speed of compilation may be penalized by the use for formats other than UTF-8, however. All characters in a UCS-4 encoded source file must be representable in UCS-2 without surrogate pairs. UCS-2 encodings with surrogate pairs (including GB18030) are accepted only if the codepage compiler option is specified.
RAD Studio编译器将接受编码UCS-2或UCS-4的文件,如果文件中包含字节顺序标记。编译的速度可能因为使用UTF-8以外的其他格式而降低。所有UCS-4中的字符编码的源文件都必须是可表示的UCS-2代理对。如果指定语言编码编译器选项,UCS-2编码与代理对(包括GB18030)是可以接受的。
注:UCS-2就是用两个字节编码,UCS-4就是用4个字节(实际上只用了31位,最高位必须为0)编码。
也欢迎各位加入到Delphi学习资料汉化中来,有兴趣者可QQ:34484690@qq.com
1 The Delphi Character Set
1 Delphi字符集
The Delphi language uses the Unicode character encoding for its character set, including alphabetic and alphanumeric Unicode characters and the underscore. Delphi is not case-sensitive. The space character and control characters (U+0000 through U+001F including U+000D, the return or end-of-line character) are blanks.
Delphi语言采用Unicode字符编码作为其字符集,包括英文字母和字母数字的Unicode字符和下划线的Unicode字符编码。 Delphi是不区分大小写的。空格字符和控制字符(U +0000到U +001F包括U +000D,返回或行尾的字符)显示为空白。
The RAD Studio compiler will accept a file encoded in UCS-2 or UCS-4 if the file contains a byte order mark. The speed of compilation may be penalized by the use for formats other than UTF-8, however. All characters in a UCS-4 encoded source file must be representable in UCS-2 without surrogate pairs. UCS-2 encodings with surrogate pairs (including GB18030) are accepted only if the codepage compiler option is specified.
RAD Studio编译器将接受编码UCS-2或UCS-4的文件,如果文件中包含字节顺序标记。编译的速度可能因为使用UTF-8以外的其他格式而降低。所有UCS-4中的字符编码的源文件都必须是可表示的UCS-2代理对。如果指定语言编码编译器选项,UCS-2编码与代理对(包括GB18030)是可以接受的。
注:UCS-2就是用两个字节编码,UCS-4就是用4个字节(实际上只用了31位,最高位必须为0)编码。
相关文章推荐
- Delphi XE5教程6:单元的结构和语法
- Delphi XE5教程9:基本语法元素
- Delphi XE5教程12:注释和编译器指示字
- Delphi XE5教程5:程序的结构和语法
- Delphi XE5教程7:单元引用和uses 子句
- Delphi XE5教程8:使用Delphi命名空间
- Delphi XE5教程11:Tokens
- javascript实例教程(10) 随机显示图片
- AngularJS入门教程10:事件处理器
- Twisted入门教程(10)
- Window10+Anaconda+python3.5+pycharm+tensorflow_cpu安装教程
- [ZedBoard移植嵌入式Linux教程(9,10)]编译设备树dts为dtb,制作根文件系统
- android2.2一键root教程(转http://www.360doc.com/content/10/1109/22/114824_68050314.shtml)
- Quartz.NET教程_Lesson 10: Configuration, Resource Usage and SchedulerFactory
- OD使用教程10 - 调试篇10|解密系列
- Delphi XE5 Android 调用手机震动
- jfinalQ开发教程10-qiao.js:js工具和bootstrap封装
- 开个新博客 准备搞 2d,3d游戏了 delphi 的 顺便写一下教程,防止以后忘记
- BLE-NRF51822教程10—动态密码(配对码)
- 《zw版·Halcon-delphi系列原创教程》 Halcon分类函数011,ocr,字符识别