You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ma...@apache.org on 2011/09/19 11:34:53 UTC

svn commit: r1172537 - /poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java

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