Here is how to get correct unicode substrings in Ruby 1.8.x
| require 'jcode' $KCODE = 'u' "öäüÖÄÜß".split(//)[4,2].join # ÄÜ | 
Don’t know, if this performes well… In case you have better ideas, please drop me a comment.
October 15, 2010 by Michael
Here is how to get correct unicode substrings in Ruby 1.8.x
| require 'jcode' $KCODE = 'u' "öäüÖÄÜß".split(//)[4,2].join # ÄÜ | 
require 'jcode' $KCODE = 'u' "öäüÖÄÜß".split(//)[4,2].join # ÄÜ
Don’t know, if this performes well… In case you have better ideas, please drop me a comment.
 Polyglot programming on the GraalVM
Polyglot programming on the GraalVM Redcloth / Textilize :hard_breaks is broken in Rails 2.3.4
Redcloth / Textilize :hard_breaks is broken in Rails 2.3.4 Creating a self containing mvc application with Sinatra
Creating a self containing mvc application with Sinatra Turn ruby heredocs from double-quoted into sinqle-quoted strings
Turn ruby heredocs from double-quoted into sinqle-quoted strings Phusion Passenger and memcached / memcache-client
Phusion Passenger and memcached / memcache-client Different day, same shit: MySQL Gem again
Different day, same shit: MySQL Gem again
No comments yet
Post a Comment