in reply to Re: string conversion problem
in thread string conversion problem

What the.....

That piece of Chinese charater string you get is absolutely right. But I simply CANNOT get the same result. The exact same code produces "浜庢柉灞堣揪灏" on my computer. Is there some configuration stuff that I'm missing? BTW I'm coding on a winxp machine with activePerl.

Also, the solution that Khen1950fx presents probably should produce the correct result but it just does not work for me either.

Replies are listed 'Best First'.
Re^3: string conversion problem
by Your Mother (Archbishop) on Mar 07, 2013 at 17:05 UTC

    Try this...? This is along the lines aitap wrote about.

    perl -CSD -MEncode -MURI::Escape -le 'print decode "UTF-8", uri_unescape("%E4%BA%8E%E6%96%AF%E5%B1%88%E8%BE%BE%E5%B0%94")'

    You might need to reverse the quotes for your box.