Re: Need help about unicode encoding with Perl !

From: Hu Guoxin (
Date: Mon Sep 08 2003 - 23:01:29 EDT

  • Next message: Chris Jacobs: "Re: Need help about unicode encoding with Perl !"

    > > hello everyone:
    > >
    > > I'm using Perl to develop a web-site.
    > But you don't tell which version of Perl.

    it's Perl 5.6.1.

    > >From this website (the first site Google
    > finds for unicode perl web) I see that different versions of Perl have
    > different levels of support for Unicode.

    I just want to know how to convert the encode method.

    Such as:

    "中国人。" is a sentence in GBK code.
    (1)how to convert it into unicode?
    (2)and how to convert it back?
    (3)if the user's OS is Japanese , how to convert the unicode message into Shift-JIS
        as "中国人"?

    Thanks a lot!

    This archive was generated by hypermail 2.1.5 : Mon Sep 08 2003 - 23:48:38 EDT