Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I've gotten complaints that the "Swedish characters" (ä, å, ö) are getting corrupted when I send e-mail through Hotmail. They show up as E4, E5 and F6 instead. The e-mail itself says charset=iso-8859-1. And my characters should work with that encoding.

Any ideas why my characters get messed up and how I can prevent this?

share|improve this question
add comment

migrated from superuser.com Jan 20 '11 at 17:47

This question came from our site for computer enthusiasts and power users.

2 Answers

the "Swedish characters" (å, ä, ö) [..] show up as E4, E5 and F6 instead. The e-mail itself says charset=iso-8859-1.

The character set might very well be ISO 8859-1, still the email itself might be encoded as well. I guess you would find Content-Transfer-Encoding: quoted-printable in the source of message. And I expect you to see lots of equals-signs as well, like =E4, =E5 and =E6, and equal-signs at the end of auto-wrapped lines?

In ISO 8859-1, E4 is indeed the hexadecimal value for ä, E5 is å and F6 is ö. In quoted-printable those are encoded as =E4, =E5 and =E6. It seems that the email client of the recipient is not decoding properly. Hence:

  • Do all recipients complain, or is it always the same few people?

  • Can you show us the source of a very small test message?

  • Can you configure Hotmail to always use Unicode (or UTF-8 encoding) instead?

    • Apparently, Hotmail does support Unicode.
    • If there's no preference in Hotmail then Hotmail might be acting upon the encoding as received from the browser. Manually selecting the encoding of the Compose Message window might help then. (But that would be a hack, really, as that encoding should affect the viewing of that compose window.)
    • Manually selecting the encoding might no longer be needed since Live Hotmail, if Live Hotmail indeed serves pages in UTF-8, and hence your browser might (I am not sure!) also send back data in UTF-8?
    • Maybe Hotmail is using different encodings for different browsers (like based on the order in the browser's Accept-Charset header), or even for different languages...?
    • Maybe using a single true Unicode character (what about a Unicode smiley?) while composing a message might make the browser send Unicode to the server, and make Hotmail encode the message in Unicode then?


In UTF-8, ä, å and ö encode to hexadecimal C3A4, C3A5 and C3B6. These show as ä, Ã¥ and ö when not decoded properly. Or, in quoted-printable this will be =C3=A4, =C3=A5 and =C3=B6. So, using Unicode (more specifically: UTF-8) will slightly increase the length of the message, but might save you from trouble, especially when mixing with other Unicode characters.

share|improve this answer
add comment

If it looks fine to you using characters with diacritics, but it doesn't on the recipient end, the charset encodings are not matching.

You might be using ISO-8859-1, but they could be viewing your email expecting UTF-8 encoding.

You'll need to have them line up, but you can't really be certain what the email client on the other end will use.

Try sending your emails out in UTF-8 format and see if that helps/cuts down the complaints.

If you're sending through the site, you won't be able to set the character encoding. But if you download Windows Live Mail, you can.

Go to:

File > Tools > Options

(You may need to tap Alt to bring up the menu.)

The Options dialog will pop up.

options in live mail

Go to the Send tab and click International Settings...

From there you will be able to select the encoding on your sent emails.

share|improve this answer
    
I would love to send e-mail in utf-8. But I can't figure out how to do it with hotmail. –  Smetad Anarkist Oct 1 '09 at 6:09
    
The other option, if using Hotmail, is to download the Live Mail program. –  random Oct 1 '09 at 7:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.