Character encoding

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Tools)
(Tools)
 
(9 intermediate revisions by 3 users not shown)
Line 57: Line 57:
 
** [[KOI8-U]] (Ukraine)
 
** [[KOI8-U]] (Ukraine)
 
* [[Macintosh encodings]]
 
* [[Macintosh encodings]]
** [[MacCE]] · [[MacCyrillic]] · [[MacDingbats]] · [[MacGreek]] · [[MacGujarati]] · [[MacGurmukhi]] · [[MacIcelandic]] · [[MacRoman]] · [[MacRomania]] · [[MacSymbol]] · [[MacThai]] · [[MacTurkish]]
+
** [[MacCE]] · [[MacCyrillic]] · [[MacDingbats]] · [[MacGreek]] · [[MacGujarati]] · [[MacGurmukhi]] · [[MacIcelandic]] · [[MacRoman]] · [[MacRomanian]] · [[MacSymbol]] · [[MacThai]] · [[MacTurkish]]
 
* [[Mattel Aquarius character set]]
 
* [[Mattel Aquarius character set]]
 
* [[Morse code]]
 
* [[Morse code]]
 
* [[MS-DOS encodings]] (IBM PC code pages)
 
* [[MS-DOS encodings]] (IBM PC code pages)
** [[CP437]] · [[CP737]] · [[CP775]] · [[CP850]] · [[CP851]] · [[CP852]] · [[CP855]] · [[CP857]] · [[CP860]] · [[CP861]] · [[CP862]] · [[CP863]] · [[CP864]] · [[CP865]] · [[CP866]] · [[CP869]]
+
** [[CP437]] · [[CP737]] · [[CP775]] · [[CP850]] · [[CP851]] · [[CP852]] · [[CP855]] · [[CP857]] · [[CP860]] · [[CP861]] · [[CP862]] · [[CP863]] · [[CP864]] · [[CP865]] · [[CP866]] · [[CP869]] · [[CP872]] · [[CP17248]]
 
* [[Palm OS character set]]
 
* [[Palm OS character set]]
 
* [[PETSCII]] (or PET ASCII or CBM ASCII; used by Commodore computers)
 
* [[PETSCII]] (or PET ASCII or CBM ASCII; used by Commodore computers)
 +
* [[TRON code]]
 
* [[Unicode]]
 
* [[Unicode]]
 
** [[BOCU-1]]
 
** [[BOCU-1]]
Line 109: Line 110:
 
* [[wchar_t]] whatever the largest block of addressable memory happens to be on the system
 
* [[wchar_t]] whatever the largest block of addressable memory happens to be on the system
  
====Glib library====
+
====GLib library====
* [[gunichar]] Unicode character (variable memory length)
+
* [[gchar]] (8 bit, same as C char)
 +
* [[guchar]] (8 bit, same as C unsigned char)
 +
* [[gunichar]] Unicode character (32 bit)
 +
* [[gunichar2]] (16 bit)
  
 
===Java Virtual Machine===
 
===Java Virtual Machine===
Line 136: Line 140:
 
* [https://cryptii.com/pipes/binary-to-text Binary to text converter]
 
* [https://cryptii.com/pipes/binary-to-text Binary to text converter]
 
* [https://www.convertbinary.com/ Text to binary converter]
 
* [https://www.convertbinary.com/ Text to binary converter]
 +
* [https://2cyr.com/decode/?lang=en Universal Cyrillic decoder] ([https://www.accent.bg/decode/ mirror])
  
 
== Commentary and satire ==
 
== Commentary and satire ==

Latest revision as of 13:38, 28 August 2023

File Format
Name Character encoding
Ontology

{{{caption}}}

Character Encodings are methods of representing characters of text, usually as numeric values which can be stored on computers as bits and bytes, but sometimes in other things (e.g., Braille represents them as patterns of raised dots). Sometimes they're also referred to as "character sets", but purists will make a distinction in that, strictly speaking, a character set is merely a repertoire of characters, the list of characters supported by some system, protocol, or file format, without it necessarily having any inherent order or numbering system. A character encoding assigns specific values (in some coding system) to each character. However, the distinction can get vague and fuzzy; there are multiple levels of abstraction (Unicode includes a set of defined characters as well as assigned numeric code points for each, but leaves it to other more specific encodings such as UTF-8 to define the specific bits/bytes that represent them in a file), and some protocols even use parameter names such as 'charset' to indicate which character encoding is in use, so the terminology can slip and slide even in "tech" uses. This section documents all the various sorts of character sets/encodings of any sort.

See Fonts for the renditions of character encodings as seen on screens and printouts. The appearance of a character is known as a "glyph", and a font consists of a set of glyphs mapped onto the more abstractly-defined characters as included in the character set that is part of a character encoding.

Contents

[edit] Specific character sets or encodings

[edit] Format details

[edit] Character encoding naming and numbering systems

[edit] Character escape codes

(used to enter characters in various systems and formats)

See also ANSI escape code.

[edit] Character memory storage types

[edit] C++

  • char (C++) at least 8 bits
  • char16_t no less than 16 bits, no less than char
  • char32_t no less than 32 bits, no less than char16_t
  • wchar_t whatever the largest block of addressable memory happens to be on the system

[edit] GLib library

[edit] Java Virtual Machine

[edit] .Net framework

[edit] Pascal

Traditionally, Pascal stored 8-bit characters (in system-specific character sets), and some implementations also had a 'string' type that was an array of characters with the zeroth element containing the number of characters in the string (maximum 255). Newer Pascal implementations have a variety of other types. [1]

[edit] QuickBasic

There is no single character datatype. (There's STRING that holds up to 32767 characters assumed to be 1 byte each).

[edit] Scala

Both char and scala.Char are wrappers around JVM's original types.

[edit] Tools

[edit] Commentary and satire

[edit] Other external links

[edit] References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox