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

查看:99
本文介绍了关于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天全站免登陆