Discussion:
encodeQuotedPrintable in mail subject
하준용
2007-08-25 07:40:16 UTC
Permalink
hi
i use korean language.

in Zend_Mail(1.0.1)
$mail = new Zend_Mail('utf-8');
$mail->setSubject('하하하하하하하하'); --> in korean same character 8 string.
was properly displayed in mail client.

but.
$mail->setSubject('하하하하하하하하하'); --> in korean same character 9 string.
was broken.

i saw that subject was encodeQuotedPrintable() and 76 byte over line was auto line break at source and mailing list.

Zend_Mime::encodeQuotedPrintable('하하하하하하하하');
result is
=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98

Zend_Mime::encodeQuotedPrintable('하하하하하하하하하');
result is
=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=
=ED=95=98

my korean 9 over string subject was encodeQuotedPrintable and auto line break.
so mail client did't decode orginal subject.

it's a bug? or my mistake?

is there any way to use 9 over string subject in korean?

thanks.
 
Nico Edtinger
2007-08-26 20:15:34 UTC
Permalink
Hi!

This problem seems to be the same as <http://framework.zend.com/
issues/browse/ZF-1688>. We're already using iconv for decoding and we
should also use it for encoding. The mail classes need to be adapted
to allow using iconv.

nico
Post by 하준용
hi
i use korean language.
in Zend_Mail(1.0.1)
$mail = new Zend_Mail('utf-8');
was properly displayed in mail client.
but.
character 9 string.
was broken.
i saw that subject was encodeQuotedPrintable() and 76 byte over
line was auto line break at source and mailing list.
Zend_Mime::encodeQuotedPrintable('하하하하하하하하');
result is
=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=
98
Zend_Mime::encodeQuotedPrintable('하하하하하하하하하');
result is
=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=98=ED=95=
98=
=ED=95=98
my korean 9 over string subject was encodeQuotedPrintable and auto line break.
so mail client did't decode orginal subject.
it's a bug? or my mistake?
is there any way to use 9 over string subject in korean?
thanks.
&nbsp;
Loading...