Browse Source

MAPIMessage: skip UTF-8 in guess7bitEncoding because UTF-8 are never used as one-byte encoding in Outlook

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1172537 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_8_BETA5
Maxim Valyanskiy 12 years ago
parent
commit
e1deb2c197
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java

+ 4
- 1
src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java View 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;
}
}

Loading…
Cancel
Save