This code that uses the CPAN module, URI :: Escape :
#!/usr/bin/env perl use v5.10; use utf8; use URI::Escape qw(uri_escape_utf8); my $url = "http://www.site.com/"; my $path = "婴儿服饰"; say $url, uri_escape_utf8($path);
at startup, print:
http://www.site.com/%E5%A9%B4%E5%84%BF%E6%9C%8D%E9%A5%B0
Is this what you are looking for?
By the way, these four characters:
CJK UNIFIED IDEOGRAPH-5A74 CJK UNIFIED IDEOGRAPH-513F CJK UNIFIED IDEOGRAPH-670D CJK UNIFIED IDEOGRAPH-9970
Which, according to the Unicode :: Unihan database, seems to be yīng ér fú shì, or maybe just ying er fú shi per Lingua :: ZH :: Romanize :: Pinyin . And maybe even jing¹ jan⁴ fuk⁶ sik¹ or jing˥ jan˨˩ fuk˨ sik˥, using the Cantonese version from Unicode :: Unihan .
source share