Author Topic: utf-8 Email Subject Encoding  (Read 2813 times)

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
utf-8 Email Subject Encoding
« on: September 01, 2009, 05:12:59 AM »
Congratulations for the 4.1.0.0 version!
Works great!
I love that a language-change updates now also the product-category-tile correctly. Also
the currency option is very convenient.

A question: Is there a way to get the email subject encoding to become like this:
....
Subject: =?utf-8?B?zrXOu867zrfOvc65zrrOrA==?
....


This is what i get now:
Message-ID: <12855656.0.1251797799296.JavaMail.costis@gonzales>
Subject: =?Cp1252?B?Pz8/Pz8/Pz8/Pz8gPz8/Pz8/Pz8/Pz8gPz8/IEtvbmFLYXJ0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8

The message body is correct and fine, but the Subject shows unprintable characters if i use a
language other than english.

Thank you
costis

trevor

  • Administrator
  • Hero Member
  • *****
  • Posts: 495
    • View Profile
    • KonaKart
Re: utf-8 Email Subject Encoding
« Reply #1 on: September 01, 2009, 05:15:49 AM »
What API call are you using ?

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 Email Subject Encoding
« Reply #2 on: September 01, 2009, 05:20:11 AM »
this happens when i send email to a customer through the Admin Application,
as well as the automatically generated email when one places an order i.e.

julie

  • Administrator
  • Hero Member
  • *****
  • Posts: 408
    • View Profile
    • KonaKart
Re: utf-8 Email Subject Encoding
« Reply #3 on: September 02, 2009, 07:22:47 AM »
Try this temporary patch out to see whether it fixes your problem. You need to create a new directory under the konakart web app and the konakartadmin web app. The directory should be:

WEB-INF/classes/com/konakart/bl/

You need to put the attached classes (in the zip file) under these directories and then re-start Tomcat.

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 Email Subject Encoding
« Reply #4 on: September 02, 2009, 05:39:31 PM »
WOW!

Works very well this way!
Thank you very much!

Subject: =?UTF-8?Q?=CE=97=CE=BB=CE=B5=CE=BA=CF=84=CF=81=CE=BF?=
 =?UTF-8?Q?=CE=BD=CE=B9=CE=BA=CF=8C_=CE=A4=CE=B1?=
 =?UTF-8?Q?=CF=87=CF=85=CE=B4=CF=81=CE=BF=CE=BC=CE=B5?=
 =?UTF-8?Q?=CE=AF=CE=BF_=CE=B1=CF=80=CF=8C_M?=
 =?UTF-8?Q?inoan_Rings_-_Matthaios_Jewels?=