[SDL] The keyboard in SDL
Facundo Dominguez
fdomin at fing.edu.uy
Fri Feb 2 04:56:21 PST 2007
Hi.
As far as I know UNICODE is a character representation designed for
using in memory.
It is a comfortable format because you can handle an array of UNICODE
characters much like
you handle a normal char array (characters use a fixed amount of bytes,
multiple of 2, and the
representation of each one is independent of the other characters around).
UTF-8 is one of many formats suitable for text storage or streaming.
That is, you try to optimize the space needed
to store the text, or the time you need to send it over a connection,
and that makes the representation a little more
complicated and not so good for working with the individual characters
of the text on memory.
I imagine that browsers, for example, receive web pages in a format of
the storage-streaming family, and then
translate them to UNICODE in order to put it on the screen. And to put
it on the screen they may use some table
relating unicode codes to glyphs.
Hope this helps. It was neither for me an easy to find piece of
information.
I apologize for not giving any references, but I do not remember where I
finally found this.
Regards
More information about the SDL
mailing list