login about faq


i receive some emails and i use chilkat email ( or chilkat mime ) to read them, some of the email do not provide a charset

i think that the component treat them as windows 1252, is it the default charset ?

is there a way to detect the charset of the body of the email ( and the subject) if no charset is explicitly provided ?

asked Oct 17 '13 at 05:36

vortexius's gravatar image


edited Oct 17 '13 at 05:51

I think the default charset if not explicitly provided is technically us-ascii. However, Chilkat will assume Windows 1252 (Latin1) because it is a superset of us-ascii. It is a slightly better choice than iso-8859-1 because the latter contains a few more "holes" in the charset (meaning byte values that represent no character whatsoever).

However, the Chilkat MIME parser, when encountering 8bit chars w/ no charset specified, will look for clues to decide the actual encoding used. It's rare to find a MIME document where Chilkat cannot get it correct, and if such a MIME document is found, it's typically because there is no possible way to surmise the correct actual charset encoding.


answered Oct 18 '13 at 11:28

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 17 '13 at 05:36

Seen: 1,008 times

Last updated: Oct 18 '13 at 11:28

powered by OSQA