Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,11 +1,16 @@
|
|||
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? Discuss and demonstrate its unicode awareness and capabilities. Some suggested topics:
|
||||
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.
|
||||
|
||||
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? 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:
|
||||
|
||||
|
|
|
|||
2
Task/Unicode-strings/Ruby/unicode-strings-1.rb
Normal file
2
Task/Unicode-strings/Ruby/unicode-strings-1.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
str = "你好"
|
||||
str.include?("好") # => true
|
||||
4
Task/Unicode-strings/Ruby/unicode-strings-3.rb
Normal file
4
Task/Unicode-strings/Ruby/unicode-strings-3.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
p bad = "¿como\u0301 esta\u0301s?" # => "¿comó estás?"
|
||||
p bad.unicode_normalized? # => false
|
||||
p bad.unicode_normalize! # => "¿comó estás?"
|
||||
p bad.unicode_normalized? # => true
|
||||
Loading…
Add table
Add a link
Reference in a new issue