[Koha-bugs] [Bug 13245] Send Cart via Email corrupts some Unicode characters
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Nov 17 05:14:22 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13245
--- Comment #5 from Pongtawat <pongtawat at punsarn.asia> ---
Thank you for make it clear why we need HTML there.
I have attached an example and screenshots. The letter we have problem with is
Thai character "อ" which is encoded in UTF8 as E0 B8 AD.
The following code in HTML-Format will simply remove A0 and AD:
$text =~ tr/\xA0\xAD/ /d;
Hence the comment in the received email source in the example above is as
follow:
--------------------------------------------------------------------
=E0=B8=E0=B8=B2 - =E0=B9=80=E0=B8 - =E0=B9=82=E0=B8 - =E0=B8=E0=B8
--------------------------------------------------------------------
while the correct one should be:
--------------------------------------------------------------------
=E0=B8=AD=E0=B8=B2 - =E0=B9=80=E0=B8=AD - =E0=B9=82=E0=B8=AD -
=E0=B8=AD=E0=B8=AD
--------------------------------------------------------------------
In my installation, I have switched Send Cart to HTML email, avoiding
html2text, since HTML emails should be the norm now. IMO, it would be great if
send cart could use easily-to-change template just like notice and slip.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list