Iconv hangs while converting chinese UTF-8 to ascii, please help

hello all, i am a rails developer. i ran into this problem when i m
using permalink_fu to generating permalink field.

it runs perfectly when the field is purely english characters, but
when it tries to convert a field with chinese characters, it hangs.

i trace it down until i got to the line with Iconv in the console,
everytime i execute the following, it hangs:

Code :

Iconv.iconv('ascii//ignore//translit','utf-8','some chinese

characters here ä½ å¥½å˜›’ )

does anyone else run into this problem?thank you

if it helps to list what machine i m on:

Windows XP
ruby 1.8.6
AMD64 3000+

Hi,

At Sat, 29 Sep 2007 22:55:03 +0900,
Mister Yu wrote in [ruby-talk:271650]:

i trace it down until i got to the line with Iconv in the console,
everytime i execute the following, it hangs:

How and from where did you install ruby and libiconv?

Hi,

It’s the Windows One-Click Installer from Ruby’s homepage.

I tried to install it to my Windows Vista partition and i got the same
result.

As long as there is chinese characters in the string, it hangs there,
until i press ctrl-c and return, it goes back to the prompt.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs