poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From max...@apache.org
Subject svn commit: r1172537 - /poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java
Date Mon, 19 Sep 2011 09:34:53 GMT
Author: maxcom
Date: Mon Sep 19 09:34:52 2011
New Revision: 1172537

URL: http://svn.apache.org/viewvc?rev=1172537&view=rev
Log:
MAPIMessage: skip UTF-8 in guess7bitEncoding because UTF-8 are never used as one-byte encoding
in Outlook

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java?rev=1172537&r1=1172536&r2=1172537&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java Mon Sep 19 09:34:52
2011
@@ -370,7 +370,10 @@ public class MAPIMessage extends POIDocu
                   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;
                   }
                }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message