2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,18 +1,30 @@
|
|||
As the world gets smaller each day, internationalization becomes more and more important. For handling multiple languages, [[Unicode]] is your best friend. <br>
|
||||
It is a very capable tool, but also quite complex compared to older single-
|
||||
and double-byte character encodings. How well prepared is your programming language for Unicode? Discuss and demonstrate its unicode awareness and capabilities.
|
||||
As the world gets smaller each day, internationalization becomes more and more important. For handling multiple languages, [[Unicode]] is your best friend.
|
||||
|
||||
It is a very capable tool, but also quite complex compared to older single- and double-byte character encodings.
|
||||
|
||||
How well prepared is your programming language for Unicode?
|
||||
|
||||
|
||||
;Task:
|
||||
Discuss and demonstrate its unicode awareness and capabilities.
|
||||
|
||||
|
||||
Some suggested topics:
|
||||
:* How easy is it to present Unicode strings in source code?
|
||||
:* Can Unicode literals be written directly, or be part of identifiers/keywords/etc?
|
||||
:* How well can the language communicate with the rest of the world?
|
||||
:* Is it good at input/output with Unicode?
|
||||
:* Is it convenient to manipulate Unicode strings in the language?
|
||||
:* How broad/deep does the language support Unicode?
|
||||
:* What encodings (e.g. UTF-8, UTF-16, etc) can be used?
|
||||
:* Does it support normalization?
|
||||
|
||||
* How easy is it to present Unicode strings in source code? Can Unicode literals be written directly, or be part of identifiers/keywords/etc?
|
||||
* How well can the language communicate with the rest of the world? Is it good at input/output with Unicode?
|
||||
* Is it convenient to manipulate Unicode strings in the language?
|
||||
* How broad/deep does the language support Unicode? What encodings (e.g. UTF-8, UTF-16, etc) can be used? Normalization?
|
||||
|
||||
'''Note''' This task is a bit unusual in that it encourages general discussion
|
||||
rather than clever coding.
|
||||
;Note:
|
||||
This task is a bit unusual in that it encourages general discussion rather than clever coding.
|
||||
|
||||
See also:
|
||||
|
||||
* [[Unicode variable names]]
|
||||
* [[Terminal control/Display an extended character]]
|
||||
;See also:
|
||||
* [[Unicode variable names]]
|
||||
* [[Terminal control/Display an extended character]]
|
||||
<br><br>
|
||||
|
|
|
|||
10
Task/Unicode-strings/Elena/unicode-strings.elena
Normal file
10
Task/Unicode-strings/Elena/unicode-strings.elena
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#import system.
|
||||
|
||||
#symbol program =
|
||||
[
|
||||
#var 四十二 := "♥♦♣♠". // UTF8 string
|
||||
#var строка := "Привет"w. // UTF16 string
|
||||
|
||||
console writeLine:строка.
|
||||
console writeLine:四十二.
|
||||
].
|
||||
1
Task/Unicode-strings/Vala/unicode-strings.vala
Normal file
1
Task/Unicode-strings/Vala/unicode-strings.vala
Normal file
|
|
@ -0,0 +1 @@
|
|||
stdout.printf ("UTF-8 encoded string. Let's go to a café!");
|
||||
Loading…
Add table
Add a link
Reference in a new issue