Hi Ken, On Fri, 08 Mar 2013 14:19:59 +0800 Ken Peng <yhp...@orange.fr> wrote:
> How can Perl recognize user's input languages? for example, if the > message is in Chinese, the character encode will be GB2312. if it's in > latin, the encode will be iso-8859-1, etc. > It's not always possible but see: https://metacpan.org/search?q=guess%20encoding Note that it's a good idea to standardise on UTF-8 or whatever globally. “The 90s called and they want their encodings/charset/internationalisation hell back.” Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/ Larry Wall can understand the Perl code he wrote last year. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/