Gossamer Forum
Home : General : Perl Programming :

charset setting for modules

Quote Reply
charset setting for modules
I'm helping a friend with his site and I need to pass Japanese characters from an email response into a script.

the script uses mime::tools +

I've tried ...

Code:
use CGI qw(:standard);
use DBI();

use MIME::Parser qw(-charset=>'shift_jis');
use Mail::Address;
use MIME::Entity qw(-charset=>'shift_jis');
#use MIME::Body;
use Data::Dumper;

use MIME::Body qw(-charset=>'shift_jis');

I'm getting lost in all this and just started slapping on the qw(-charset=>'shift_jis'); bits which just doesn't seem right.

any suggestions on how I should declare the character setting vaules?

much appreciated.

openoffice + gimp + sketch ... Smile
Quote Reply
Re: [QooQ] charset setting for modules In reply to
What are you trying to do? Why are you using so many modules? Why are you using DBI if it's just sending the contents of a fill out form to an email?

- wil
Quote Reply
Re: [Wil] charset setting for modules In reply to
>>
Why are you using DBI if it's just sending the contents of a fill out form to an email?
<<

Read it properly...thats not what it says Tongue

>>
I need to pass Japanese characters from an email response into a script.
<<
Quote Reply
Re: [Paul] charset setting for modules In reply to
Aha. I kind of read that backwards ;-)

- wil