Can anyone help me understand how to use jcode.pl :
ftp://ftp.iij.ad.jp/pub/IIJ/dist/utashiro/perl/
to handle Japanese Kanji encoding conversions in my CGI/Perl programs [particularly EUC to SJIS, and SJIS to EUC]?
I understand the basics (use SJIS for display, EUC for the CGI program to work with, and JIS for email delivery), and I know the syntax for what I want to do [i.e.
&jcode::convert( *File, "sjis", "euc"
to convert 'File' to SJIS from EUC encoding]. However, it doesn't work reliably for me all the time. Sometimes it works sometimes not.
For example, I can save HTML form-input to a CSV file and everything looks fine, but when I read that data back out to the HTML form for editing, some of the characters do not display correctly[although the data in the CSV file hasn't changed].
I'm going to go through the documentation step by step and perform some basic testing of the examples. But,in the meantime, if anyone knows more details or 'tricks' about using this Perl library, please post a reply. Thanks!
ftp://ftp.iij.ad.jp/pub/IIJ/dist/utashiro/perl/
to handle Japanese Kanji encoding conversions in my CGI/Perl programs [particularly EUC to SJIS, and SJIS to EUC]?
I understand the basics (use SJIS for display, EUC for the CGI program to work with, and JIS for email delivery), and I know the syntax for what I want to do [i.e.
&jcode::convert( *File, "sjis", "euc"
to convert 'File' to SJIS from EUC encoding]. However, it doesn't work reliably for me all the time. Sometimes it works sometimes not.
For example, I can save HTML form-input to a CSV file and everything looks fine, but when I read that data back out to the HTML form for editing, some of the characters do not display correctly[although the data in the CSV file hasn't changed].
I'm going to go through the documentation step by step and perform some basic testing of the examples. But,in the meantime, if anyone knows more details or 'tricks' about using this Perl library, please post a reply. Thanks!