Home > Archive > PERL CGI Beginners > September 2004 > Need help on Chinese registration form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Need help on Chinese registration form
|
|
| Daniel Chan 2004-09-02, 8:55 pm |
| I am working on the Chinese registration form, first time I do that, but
have a lot of questions.
1) The user will type in Chinese character, simple, on my form but how will
I know if I am capturing the Chinese character correctly so that I can save
to a flat file.
2) The submitted data will be saved to a tab delimited flat file. We will
just open the flat with excel to view the data. The question is how can I
save the data to the flat file so that I can view the Chinese character in
excel? I tried to copy and paste some Chinese character in note pad then
open with excel. It works if I save the file in Unicode format.
3) My perl cgi script will display some Chinese message interactively. I
have a lot of problem when I tried to embed Chinese character with my code.
Please help.
Daniel
| |
| Wiggins d Anconia 2004-09-02, 8:55 pm |
| >
> I am working on the Chinese registration form, first time I do that, but
> have a lot of questions.
>
> 1) The user will type in Chinese character, simple, on my form but how
will
> I know if I am capturing the Chinese character correctly so that I can
save
> to a flat file.
> 2) The submitted data will be saved to a tab delimited flat file. We will
> just open the flat with excel to view the data. The question is how can I
> save the data to the flat file so that I can view the Chinese character in
> excel? I tried to copy and paste some Chinese character in note pad then
> open with excel. It works if I save the file in Unicode format.
> 3) My perl cgi script will display some Chinese message interactively. I
> have a lot of problem when I tried to embed Chinese character with my
code.
>
You should probably start by reviewing:
http://perldoc.com/perl5.8.4/pod/perluniintro.html
http://perldoc.com/perl5.8.4/pod/perlunicode.html
Which will cover unicode details as they relate to Perl. From there the
only thing I know that you will need to do differently in CGI is to
specify a charset back to the browser (though I could be wrong).
Have you been through those docs? Always the best way is to dive in and
give it a shot, then ask more specific questions...
http://danconia.org
|
|
|
|
|