[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Converting ö to o, ü to u, encoding

Kenny Lee

5/23/2008 7:47:00 AM

Hi guys,

Does any1 have a ruby snippet to do the conversion? Probably using the
iconv lib?

Best Wishes.
--
Posted via http://www.ruby-....

1 Answer

Kenny Lee

5/23/2008 8:01:00 AM

0

Kenny Lee wrote:
> Hi guys,
>
> Does any1 have a ruby snippet to do the conversion? Probably using the
> iconv lib?
>
> Best Wishes.

Sorry,

Should have googled it. http://tinyurl...

w = Iconv.conv('ascii//translit', 'utf-8', 'kierkegård')
w = w.delete("\"")
--
Posted via http://www.ruby-....