Download - Garbled text in email
Garbled text in email
SEGSatoshi Tashiro
Agenda
- What is a garbled text- Why garbled text happened- Email text specifications- MIME < Let them eat cake >- MIME and Character code
What is a garbled text
If recipient mailer can’t understand character code, garbled text happen.
Why garbled text happened ?
written by Mars Language Terellian mailer can not understand
If you use US-ASCII, almost recipient mailer can understand character code.You do not need to get garbled text.
Why garbled text happened ?
HELLO!HELLO!
Email text specifications
Oh! by the way, RFC says…You can use US-ASCII character only.Multibyte character can not use in email.
RFC-5321 (2.3.1. Mail Objects)The content is textual in nature, expressed using the US-ASCII repertoire.
Expressed using the US-ASCII repertoire.Garbled text in email not happened.
We are happy ! That’s all ! Thank you !!
We are multibyte character
http://en.wikipedia.org/wiki/Language
We are multibyte character
What should we do ? (´ ・ ω ・ `)
Don’t worry, we have a MIME
Multipurpose Internet Mail Extensions (MIME) is an Internet standard that extends the format of email to support:
- Text in character sets other than ASCII- Non-text attachments- Message bodies with multiple parts- Header information in non-ASCII character sets
RFC2045, RFC2046, RFC2047
MIME < Let them use US-ASCII >
Email should be ASCII character.=> Encode to ASCII !! non-ASCII -> ASCII かめはめ波 -> 44GL44KB44Gv44KB5rOiC
If you announce charset and encoding correctly, we don’t
get garbled text
Written by UTF-8 andMIME(Base64) encode. Base64 decode and
reading UTF-8
Content-Type: text/plain; charset="utf-8"Content-Transfer-Encoding: base64
Content-Type: text/plain; charset="utf-8"Content-Transfer-Encoding: base64
We are happy !Thank you !!
It is regrettable to say this, but…
Now, your mailer has auto detect function to
charset.
Therefor...
- Gmail occasionally mistakes Japanese and Chinese
- Microsoft Outlook also the same
- If attached csv file, Gmail misconstrued to US-
ASCII
These are bug of mailer. but not
repaired...
Thank you for
listening !