From: Carlos Date: 2007-02-14T03:34:55+09:00 Subject: Re: Non-English characters Thiago Arrais wrote: > Has anyone seen a non-english characters library for Ruby walking > around? For now, I need to remove letter decorators (in other words, > '�' becomes n and '�' becomes a) and drop non-alphanumeric > characters ('!etter' becomes 'etter'). > > Those are some pretty simple functions that I could write myself > (actually I already have), but it would be nice to use some better > tested code. You could use the "unicode" library, by Yoshida Masato. http://www.yoshidam.net/Ruby.html Example: $ cat uni.rb require 'unicode' txt = '�������������������!@#*$%^&' puts Unicode.decompose(txt).delete('^0-9A-Za-z') $ ruby uni.rb naoouoeiAOACEEEI Good luck. --