关于 Unicode,我需要了解什么? [英] What do I need to know about Unicode?

查看:33
本文介绍了关于 Unicode,我需要了解什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为应用程序开发人员,我需要了解 Unicode 吗?

Being a application developer, do I need to know Unicode?

推荐答案

Unicode 是一种标准,它为书面交流中使用的字形定义数字代码.或者,正如他们自己所说的那样:

Unicode is a standard that defines numeric codes for glyphs used in written communication. Or, as they say it themselves:

数字标准所用字符的表示在写下世界上所有的语言.Unicode 提供了统一的用于存储、搜索和交换任何语言的文本.它被所有现代计算机使用并且是处理文本的基础互联网.Unicode 被开发和由 Unicode 联盟维护.

The standard for digital representation of the characters used in writing all of the world's languages. Unicode provides a uniform means for storing, searching, and interchanging text in any language. It is used by all modern computers and is the foundation for processing text on the Internet. Unicode is developed and maintained by the Unicode Consortium.

开发人员犯了许多常见但很容易避免的编程错误,他们不费心自学 Unicode 及其编码.

There are many common, yet easily avoided, programming errors committed by developers who don't bother to educate themselves about Unicode and its encodings.

  • First, go to the source for authoritative, detailed information and implementation guidelines.
  • As mentioned by others, Joel Spolsky has a good list of these errors.
  • I also like Elliotte Rusty Harold's Ten Commandments of Unicode.
  • Developers should also watch out for canonical representation attacks.

您应该了解的一些关键概念是:

Some of the key concepts you should be aware of are:

  • 字形—用于表示书写字符的具体图形.
  • 组合—组合字形创建另一个字形.
  • 编码—将 Unicode 点转换为字节流.
  • 排序规则—Unicode 字符串的区域敏感比较.
  • Glyphs—concrete graphics used to represent written characters.
  • Composition—combining glyphs to create another glyph.
  • Encoding—converting Unicode points to a stream of bytes.
  • Collation—locale-sensitive comparison of Unicode strings.

这篇关于关于 Unicode,我需要了解什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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