This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
api:unicode [2015/01/14 23:40] 127.0.0.1 external edit |
api:unicode [2015/04/11 16:35] sangar |
||
---|---|---|---|
Line 3: | Line 3: | ||
Because all strings pass through Java at some point it can be useful to handle them with Unicode support (since Java's internal string representation is UTF-8 encoded). In particular, screens display UTF-8 strings, meaning the related GPU functions expect UTF-8 strings. Also, keyboard input will generally be UTF-8 encoded, especially the clipboard. | Because all strings pass through Java at some point it can be useful to handle them with Unicode support (since Java's internal string representation is UTF-8 encoded). In particular, screens display UTF-8 strings, meaning the related GPU functions expect UTF-8 strings. Also, keyboard input will generally be UTF-8 encoded, especially the clipboard. | ||
- | However, keep in mind that only a subset of UTF-8 can actually be displayed on screens. Specifically all glyphs defined in [[http://en.wikipedia.org/wiki/Code_page_437|code page 437]] are supported. | + | However, keep in mind that while wide characters can be displayed, input and output of those is not fully supported in OpenOS's software (i.e. the shell, edit and Lua interpreter). |
The following functions are provided to allow basic UTF-8 handling: | The following functions are provided to allow basic UTF-8 handling: |