Difference between revisions of "Big5"

m
 
Line 20: Line 20:
 
zmprov fc all</pre>
 
zmprov fc all</pre>
 
When this setting is applied and the browser cache is emptied, the message is rendered correctly:
 
When this setting is applied and the browser cache is emptied, the message is rendered correctly:
 
https://raw.githubusercontent.com/Zimbra-Community/zimbra-patches/master/big5-chinese-encoding/screenshots/fix.png
 
  
 
From 9.0.0 Patch 25 and 8.8.15 Patch 32 the default character set setting can also be found in the Admin Console UI.
 
From 9.0.0 Patch 25 and 8.8.15 Patch 32 the default character set setting can also be found in the Admin Console UI.

Latest revision as of 06:37, 16 June 2022

Fix encoding issues for Chinese Characters

Some email clients such as Outlook on Windows may use the so called code page 950 or big5 character set when writing emails in Chinese. Since these charsets are not defined in a formal standard this can lead to some character be displayed as a question mark to indicate a character set problem when you receive emails.

Since Zimbra is using native Java libraries (java.nio.charset.Charset) to deal with character sets, both the Classic and Modern UI are equally affected by this issue.

You can verify that your email indeed used big5 encoding by viewing the message source (Show original menu) and check the Content-Type header:

Content-Type: text/plain; charset="big5"

To fix this issue you can set the Zimbra preference zimbraPrefMailDefaultCharset to x-Big5-Solaris. The x-Big5-Solaris encoding is the most complete implementation of big5 in Java java.nio.charset package. Please see the link under further reading for technical details.

zimbraPrefMailDefaultCharset can be set on an account or at Class of Service (CoS) level.

#To set on an account:
zmprov ma user@example.com zimbraPrefMailDefaultCharset "x-Big5-Solaris"
#To set on the default CoS:
zmprov mc default zimbraPrefMailDefaultCharset "x-Big5-Solaris"

#Flush all cache
zmprov fc all

When this setting is applied and the browser cache is emptied, the message is rendered correctly:

From 9.0.0 Patch 25 and 8.8.15 Patch 32 the default character set setting can also be found in the Admin Console UI.

admin-ui.png

Further reading

Jump to: navigation, search