Hi,
I want to upcase/downcase utf-8 characters. How to do it with ruby?
I googled the web with no satisfying results. I also installed
character-encodings (0.4.1) but have no idea how to use it (the
documentation is really pure).
If I put " require 'encoding/character/utf-8' " line to my script I
get:
"(...) in `require': no such file to load -- encoding/character/utf-8
(LoadError) (...)"
Docs say:
"To compile:
$ rake
To test:
$ rake spec"
I get:
"(in (...)/character-encodings-0.4.1)
rake aborted!
no such file to load -- spec/rake/spectask
(...)/character-encodings-0.4.1/rakefile:10
(See full trace by running task with --trace)"
Docs say:
"It’s basically the following:
require 'encoding/character/utf-8'
str = +"äbc"
str_that_is_the_same_as_previous_str = u"äbc"
There’s no install task yet, so until then, just load Ruby as follows:
$ ruby -Ilib:ext
and you’ll be able to require the library as shown above."
I get:
"(...) in `require': no such file to load -- encoding/character/utf-8
(LoadError) (...)"
...
Could anyone tell me how to upcase/downcase utf-8 characters? Is it
that hard?! it should be damn simple as it is a damn simple feature...
Greetz,
Timo