Search code examples
character-encoding8-bit

charset="8Bit" can be interpreted as us-ascii?


I am using javamail and trying to process emails that has Content-Type: text/html; charset="8Bit" can i assume this as us-ascii or is there a better equivalent?


Solution

  • US-ASCII is the lowest common denominator of all character sets and it is a seven bit character set. "8Bit" is no character set! The used character encoding should be specified i.e. iso-8859-1 or utf-8. Please see: https://www.w3schools.com/html/html_charset.asp