- Character (computing)
In computer and machine-based telecommunications terminology, a character is a unit of information that roughly corresponds to a grapheme, grapheme-like unit, or symbol, such as in an alphabet or syllabary in the written form of a natural language.
Examples of characters include letters, numerical digits, and common punctuation marks (such as '.' or '-'). The concept also includes control characters, which do not correspond to symbols in a particular natural language, but rather to other bits of information used to process text in one or more languages. Examples of control characters include carriage return or tab, as well as instructions to printers or other devices that display or otherwise process text.
Characters are typically combined into strings.
Computers and communication equipment represent characters using a character encoding that assigns each character to something — an integer quantity represented by a sequence of bits, typically — that can be stored or transmitted through a network. Two examples of popular encodings are ASCII and the UTF-8 encoding for Unicode. While most character encodings map characters to numbers and/or bit sequences, Morse code instead represents characters using a series of electrical impulses of varying length.
Historically, the term character has been widely used by industry professionals to refer to an encoded character, often as defined by the programming language or API). Likewise, character set has been widely used to refer to a specific repertoire of characters that have been mapped to specific bit sequences or numerical codes. The term glyph is used to describe a particular physical appearance of a character. Many computer fonts consist of glyphs that are indexed by the numerical code of the corresponding character.
With the advent and widespread acceptance of Unicode and bit-agnostic encoding forms,[clarification needed], a character is increasingly being seen as a unit of information, independent of any particular visual manifestation. The ISO/IEC 10646 (Unicode) International Standard defines character, or abstract character as "a member of a set of elements used for the organisation, control, or representation of data". Unicode's definition supplements this with explanatory notes that encourage the reader to differentiate between characters, graphemes, and glyphs, among other things.
For example, the Hebrew letter aleph ("א") is often used by mathematicians to denote certain kinds of infinity, but it is also used in ordinary Hebrew text. In Unicode, these two uses are considered different characters, and have two different Unicode numerical identifiers ("code points"), though they may be rendered identically. Conversely, the Chinese logogram for water ("水") may have a slightly different appearance in Japanese texts than it does in Chinese texts, and local typefaces may reflect this. But nonetheless in Unicode they are considered the same character, and share the same code point.
The Unicode standard also differentiates between these abstract characters and coded characters or encoded characters that have been paired with numeric codes that facilitate their representation in computers.
charin the C programming language is a fixed-size byte entity, which at one time was large enough to store a character value from ASCII or other encodings. Since often only 256 different values can be stored in a byte, it is impossible to store characters from Unicode and other modern sets in a
char. Instead larger storage units such as
wchar_t, or more than one byte per character such as UTF-8, are used.
Unfortunately the fact that a character was stored in a byte led to the two terms being used interchangeably in most documentation. This often makes the documentation confusing and/or misleading, and has also led to extremely inefficient implementations of UTF-8 where offsets are replaced with repetitive counting of characters, and has also led to bugs when different systems disagree on the count.
- ^ Davis, Mark (2008-05-05). "Moving to Unicode 5.1". Google Blog. http://googleblog.blogspot.com/2008/05/moving-to-unicode-51.html. Retrieved 2008-09-28.
- ^ http://www.regular-expressions.info/charclass.html
- ^ See also the
[:word:]regular expression character class
- Characters: A Brief Introduction by The Linux Information Project (LINFO)
- ISO/IEC TR 15285:1998 summarizes the ISO/IEC's character model, focusing on terminology definitions and differentiating between characters and glyphs
Data types Uninterpreted Numeric Text
Pointer Composite Other Related topics
Wikimedia Foundation. 2010.
См. также в других словарях:
Character — Character(s) may refer to: Contents 1 Art and entertainment 2 Mathematics, science and technology 3 Symbols 4 Other … Wikipedia
Character (word) — A character (from the Greek gr. engraved or stamped mark (on coins or seals), branding mark, symbol ) may refer to any sign or symbol.EtymologyGreek gr. χαρακτήρ is a nomen agentis of a verb gr. χαράσσω with a meaning to sharpen, to whet , and… … Wikipedia
Character (symbol) — A character (from the Greek χαρακτήρ engraved or stamped mark on coins or seals, branding mark, symbol ) may refer to any sign or symbol. Contents 1 History 2 Grapheme … Wikipedia
Character amnesia — (simplified Chinese: 提笔忘字; traditional Chinese: 提筆忘字; pinyin: tíbĭwàngzì; literally pick up pen, forget the character ) is a phenomenon whereby experienced speakers of some East Asian languages forget how to write Chinese characters previously… … Wikipedia
character code — noun (computing) The particular binary code used to represent a character • • • Main Entry: ↑character * * * ˈcharacter code 7 [character code] noun (computi … Useful english dictionary
character recognition — noun (computing) A process used to recognize individual printed or written characters • • • Main Entry: ↑character * * * ˈcharacter recognition 7 [character recognition] noun … Useful english dictionary
Computing — For the formal concept of computation, see computation. For the magazine, see Computing (magazine). For the scientific journal, see Computing (journal). A difference engine: computing the solution to a polynomial function … Wikipedia
Character generator — This article is about video technology. For hardware character generators in computing context, see text mode. For the Internet service, see Character Generator Protocol. An Aston Ethos hardware character generator A character generator, often… … Wikipedia
Character encoding — Special characters redirects here. For the Wikipedia editor s handbook page, see Help:Special characters. A character encoding system consists of a code that pairs each character from a given repertoire with something else, such as a sequence of… … Wikipedia
Character sheet — This article is about the character sheet used in roleplaying. For the character sheet used in animation and comics, see Character sheet (animation). A custom character sheet for the Stormbringer role playing game (in German) A character sheet is … Wikipedia