Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [tlug] perl, cgi, and moji-baki-SOLVED



Special Thanks to Edmund, Brett and David,

I knew I was close and all I need to do was get the right encoding but after
staring at it for to long I needed a different pair of eyes to show me where
I was going wrong. Thanks Guys.
Solution was change
my $name_plus			= "$name II";
my $name_coded		= &jcode::sjis($name_plus);
my $body_coded		= &jcode::sjis($body);

to

my $name_plus			= "$name II";
my $name_coded		= &jcode::jis($name_plus);
my $body_coded		= &jcode::jis($body);

The 7 bit encoding in the header was screwing up the shift-jis in the body.

Also I know this is a Linux form but I use Outlook Express (please don't
hate on me) to get my subject lines encoded correctly by sending the
Japanese subject line to my OE account and going into the message header and
pulling it directly from there. MS has some good uses they are just
difficult to find.

Thanks Again,

Erin

PS David Later tonight I will read up on that module you showed me as well.


-----Original Message-----
From: David E [mailto:dave@example.com]
Sent: Wednesday, January 26, 2005 1:22 PM
To: tlug@example.com; erin@example.com
Subject: Re: [tlug] perl, cgi, and moji-baki


From: "Erin D. Hughes" <erin@example.com>
Subject: [tlug] perl, cgi, and moji-baki
Date: Wed, 26 Jan 2005 11:48:35 +0900

>
> Hey can I ask any one give me a little assistance with a cgi I am trying
to
> create. It is really a simple thing but it is not coming out well at all.
>
> 1. I need the data to go into the db as EUC. Already happening page is
> encoded with EUC so data comes in that format.
> 2. I need sent the thank you e-mail to the customer in Shift-JIS, Using
> Jcode I think that I have achieved that with header info.
> 3. Currently both functions are working except when a Mac user receives
the
> mail. There it is Moji Baki.
>

This Perl module might help you out with sending mail in Japanese.
There are others that do more with mail, but this one looks pretty simple.

http://search.cpan.org/~hata/Lingua-JA-Mail-0.02/Mail.pm

You can find tons of related stuff by searching "Mail" at search.cpan.org


-dave

--
The TLUG server is hosted by Open Source Development Lab Japan.
http://www.osdl.jp/

To unsubscribe from this mailing list,
please see the instructions at <http://www.tlug.jp/list.html>


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links