Author Topic: sent mail character encoding problem (latin1 related?)  (Read 3874 times)

lukacsp

  • Newbie
  • *
  • Posts: 14
    • View Profile
sent mail character encoding problem (latin1 related?)
« on: March 05, 2010, 07:48:59 am »
Hi,

utf-8 is our global settings (for sending emails too). Its working fine, but...
The received mail's subject is perfect, but the body (at least on MS Outlook) looks like this:

"Kérlek állítsd át c5ket, "

its supposed to be like this:

"Kérlek állítsd át őket, "

Im hungarian, and we using some special characters: ő Ő, ű, Ű. I know that the latin1 code page contains every hungarian letters except this 4, maybe its related to it somehow... any clue? This code below is from an utf8-conversion function:

HUNGARIAN 'ő' = char(197) + char(145)) --c5 91
HUNGARIAN 'Ő' = char(197) + char(144)) --c5 90
HUNGARIAN 'ű' = char(197) + char(177)) --c5 b1
HUNGARIAN 'Ű' = char(197) + char(176)) --c5 b0


Another observation:

When i trying to forward a message in feng office, and i switch from HTML to plain text, its look like this:

"Kérlek állítsd át őket"

The special characters converted to html entities except the ő character...

Update:

I saved the original mail (i forwarded this mail in my tests)  from Feng Office, and the sentence above looks like this:

"K=E9rlek =E1ll=EDtsd =E1t =F5ket"

So my character encoding problem is related with the mail writing process...

***

If it can be repaired with a quick swiftmailer hack, thats enough for me ;)

Thanks!
« Last Edit: March 05, 2010, 08:55:10 am by lukacsp »

lukacsp

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: sent mail character encoding problem (latin1 related?)
« Reply #1 on: March 09, 2010, 03:19:46 pm »
Update:

my quoted-printable characters doesnt converted to html entities,
For example "=C5" should converted to ó and so on... any help in this?

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: sent mail character encoding problem (latin1 related?)
« Reply #2 on: March 15, 2010, 06:07:21 pm »
Hi,
Please add this 2 lines to "application/views/mail/add_mail.php" after line 355
Code: [Select]
,
entities_additional : '#39,#336,#337,#368,#369'

After refreshing the page, these four characters will be added as entities to the mail editor.

regards

lukacsp

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: sent mail character encoding problem (latin1 related?)
« Reply #3 on: March 16, 2010, 08:26:46 am »
Thank you for your kind help! It works flawlessly now.