in reply to string conversion problem

YourMother and aitap. The exact code snippets you guys gave do not produce the correct string on my machine. But with your helpful discussion, I finally figured out what worked for me:

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

Thank you very very much for the help. Also, it would be great if any of you can explain to me why I need the above code on my computer while a simple uri_unescape works for YM.