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: [email protected]
For additional commands, e-mail: [email protected]