special characters in notification emails

Posts: 109
Joined: 08/08/2007
Getting busy with the Ubercode.Internationalizationizer

i'm having a strange problem with the order confirmation email generated by the system. when opened in yahoo mail, the special characters (euro sign, accent, grave, etc) are converted to alien characters.

so far, i have only seen this in yahoo mail, although other emails containing special characters show fine in yahoo.

i'm guessing it's something to do with utf-8 character encoding of the generated document, but how to check/fix this?

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

I verified from the code that they should be sent in UTF-8. Your browser might not be detecting the right encoding when it's viewing the Yahoo! Mail page. In Firefox, you can change it in View > Character Encoding. If that helps, I suspect those other emails weren't sent in UTF-8.

Posts: 109
Joined: 08/08/2007
Getting busy with the Ubercode.Internationalizationizer

my browser is set to utf-8 character encoding - i wish it were that simple! Sad

however, i have made some progress in this issue. i noticed that the emails generated by the simplenews module were also behaving weirdly in both yahoo and hotmail, so i did some searching and found the following issue and fix for simplenews:
http://drupal.org/node/78876

although the simplenews issue is still active, i've implemented the dirty hack and it works fine. i must admit it's a bit advanced for me to understand exactly why...

so i was wondering:

a) has anyone else encountered this problem with the ubercart generated mails?
b) could the dirty hack from simplenews be applied to ubercart and if so, where? perhaps in uc_notify?

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Not sure what to do about this fix... I understand it may be an issue for some people, but I'm not too hot on bringing in another include and have to work on support. Maybe the thing to do would be to post a tutorial for store owners with this issue here.

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

Hi,

I'm not sure my problem is related to this, but it might. In my case al breaks in notify emails are gone, the whole message is on one line. This looks ugly and messy.

adding \n to line ends doesn't solve, \n is plain shown in the message. Setting line breaks in the textarea box does not help either.

Any ideas?

Thanks,

Kees

Posts: 109
Joined: 08/08/2007
Getting busy with the Ubercode.Internationalizationizer

hmmm...kees, is this only happening in your dutch translated notify mails, or the english ones as well?

as soon as i figure out how to make a similar adjustment to the simplenews solution, i'll post a tutorial. hope to get onto this tomorrow. for now... have... no... time. powers getting... weaker...

Posts: 174
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

Hi Megg,

Hope you slept well.
Yes, the notification mails are translated. I cannot tell if it is due to that, I have to setup a test.

Thanks,

Kees