Sunday, June 21, 2009

Rails 1.91 and international chars...hmmmm

So I finally installed ruby 1.9.1 on my netbook. YEA! Thanks to Mike Greenly's blog post I can safely and easily switch between any ruby install. Very cool Mike --thanks!

So I have an interesting Fraud Detection app that I am working on that has a routine function that converts international chars into their US-ascii format. I am doing this because I am trtying to normalize the string itself. What is interesting is that I can't get it to work correctly without giving me this error...


invalid multibyte char (US-ASCII)

...

syntax error, unexpected $end, expecting tASSOC
'ÀÁÂÃÅĀĄĂ' => 'A',

This works just fine and dandy in 1.8.7 but breaks in 1.9.1...hmmm

A bunch of the gems I tried to install including mongrel don't seem to work correctly either. But this is just my first stab at this so more to come I'm sure. Not as easy as I had hoped though. Strange, seems like this is the overall feeling of the Ruby community. It just doesn't seem like many people are making use of 1.9.x.

No comments:

Post a Comment