3 ms·
I am still not sure how unicode works in Ruby. Therefore I never dare to do any String operations like regular expressions or the the chomp/split he does. The
by Tichy 16y ago
I am still not sure how unicode works in Ruby. Therefore I never dare to do any String operations like regular expressions or the the chomp/split he does.
The pragmatic book mentions something about kcode (I think), but Rails seems to use something else. Back when I last tried, I couldn't find any definite answers to this.
Maybe Ruby 1.9 solves this problem - but is it ready yet? Again, last I tried, there wasn't even a MySQL driver for it.
- draegtun 16y agoTo be fair unicode has never been without issues in Perl & Python either! Perl has generally been the best of the three (IMHO) but Python 3.0 & Ruby 1.9 have probably now caught up.