]> source.dussan.org Git - poi.git/commitdiff
MAPIMessage: skip UTF-8 in guess7bitEncoding because UTF-8 are never used as one...
authorMaxim Valyanskiy <maxcom@apache.org>
Mon, 19 Sep 2011 09:34:52 +0000 (09:34 +0000)
committerMaxim Valyanskiy <maxcom@apache.org>
Mon, 19 Sep 2011 09:34:52 +0000 (09:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1172537 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java

index b105c8b4e6d413b70a5fb9f0a10c0fe3b2150922..1f31c086c5ed9bb5da2294cd648364375c44ba62 100644 (file)
@@ -370,7 +370,10 @@ public class MAPIMessage extends POIDocument {
                   if(m.matches()) {
                      // Found it! Tell all the string chunks
                      String charset = m.group(1);
-                     set7BitEncoding(charset);
+
+                     if (!charset.equalsIgnoreCase("utf-8")) { 
+                        set7BitEncoding(charset);
+                     }
                      return;
                   }
                }