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

M

Mister Yu

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+
 
N

Nobuyoshi Nakada

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?
 
M

Mister Yu

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.


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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top