in reply to encoding from Unicode to GB

If you set up your form properly:
<form accept-charset="utf-8">
the chractes you submit will be sent to the web server in unicode, not in the alternate encoding scheme you describe. It will also help if you put the document itself into UTF-8 as-well by setting the content-type (either in the HTTP header or in a meta-tag) to charset=utf-8.
update

Here are the links I promised:

In addition to the unicode conversion modules mentioned above (Unicode::Map, Unicode::Map8, cpan::Unicode::MapUTF8) you may also want to check out the Text::Iconv module which also provides character set conversion functionality.

Replies are listed 'Best First'.
Re: Re: encoding from Unicode to GB
by dash2 (Hermit) on Nov 28, 2000 at 18:51 UTC
    Thanks for the useful hints. Some references would be great. It would also be nice if someone could explain to me how one goes about encoding strings as bytes for sending over the net - a high-level description would be good, because I really feel rather blind in this area.