- published: 05 Dec 2013
- views: 37656
UTF-8 is a character encoding capable of encoding all possible characters, or code points, in Unicode.
The encoding is variable-length and uses 8-bit code units. It was designed for backward compatibility with ASCII, and to avoid the complications of endianness and byte order marks in the alternative UTF-16 and UTF-32 encodings. The name is derived from: Universal Coded Character Set + Transformation Format – 8-bit.
UTF-8 is the dominant character encoding for the World Wide Web, accounting for 86.2% of all Web pages in January 2016 (with the most popular East Asian encoding, GB 2312, at 0.9% and Shift JIS at 1.1%). The Internet Mail Consortium (IMC) recommends that all e-mail programs be able to display and create mail using UTF-8, and the W3C recommends UTF-8 as the default encoding in XML and HTML.
UTF-8 encodes each of the 1,112,064 valid code points in the Unicode code space (1,114,112 code points minus 2,048 surrogate code points) using one to four 8-bit bytes (a group of 8 bits is known as an octet in the Unicode Standard). Code points with lower numerical values (i.e., earlier code positions in the Unicode character set, which tend to occur more frequently) are encoded using fewer bytes. The first 128 characters of Unicode, which correspond one-to-one with ASCII, are encoded using a single octet with the same binary value as ASCII, making valid ASCII text valid UTF-8-encoded Unicode as well. And ASCII bytes do not occur when encoding non-ASCII code points into UTF-8, making UTF-8 safe to use within most programming and document languages that interpret certain ASCII characters in a special way, e.g. as end of string.
She wiped the smile right off my face
And hid it away in a secret place
The night was dark and the ground was cold
I slipped myself into a pool
I saw the trees but not the wood
And floated in an icey flood
As cold began to freeze my heart
I heared a voice come through the dark
Bring up the coals
Light up the fire
Joy de viva
Joy de viva
Smile your shining smile on me
If you see her
Say I need her
Joy de viva
Joy de viva
Now sunburned men tell tales of me
Of how I sail the ocean deep
Upon the brow I shade my face
Searching for that sate of grace
Every night the moon appears
She shows me that I need not fear
The crashing rocks and siren wind
And I will find her in the end
Then I will run