16
Garbled text in email SEG Satoshi Tashiro

Garbled text in email

Embed Size (px)

Citation preview

Page 1: Garbled text in email

Garbled text in email 

SEGSatoshi Tashiro

Page 2: Garbled text in email

Agenda

- What is a garbled text- Why garbled text happened- Email text specifications- MIME < Let them eat cake >- MIME and Character code

Page 3: Garbled text in email

What is a garbled text

Page 4: Garbled text in email

If recipient mailer can’t understand character code, garbled text happen.

Why garbled text happened ?

written by Mars Language Terellian mailer can not understand

Page 5: Garbled text in email

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!

Page 6: Garbled text in email

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.

Page 7: Garbled text in email

Expressed using the US-ASCII repertoire.Garbled text in email not happened.

We are happy ! That’s all ! Thank you !!

Page 8: Garbled text in email
Page 9: Garbled text in email

We are multibyte character

Page 10: Garbled text in email

http://en.wikipedia.org/wiki/Language

Page 11: Garbled text in email

We are multibyte character

What should we do ?    (´ ・ ω ・ `)

Page 12: Garbled text in email

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

Page 13: Garbled text in email

MIME < Let them use US-ASCII >

Email should be ASCII character.=> Encode to ASCII !! non-ASCII -> ASCII かめはめ波 -> 44GL44KB44Gv44KB5rOiC

Page 14: Garbled text in email

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 !!

Page 15: Garbled text in email

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...

Page 16: Garbled text in email

Thank you for

listening !