View Issue Details

IDProjectCategoryView StatusLast Update
0006090SOGoWeb Mailpublic2025-02-11 10:21
Reporteringo-aware Assigned Toqhivert  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformClientOSMicrosoft WindowsOS Version11
Product Version5.11.2 
Summary0006090: Web mail does not display Thai characters in emails sent from Exchange
Description

When displaying emails in Thai language in web mail, the characters appear as junk. But once clicking on Reply or Forward, the characters will be displayed properly. This only happens with emails from Outlook (Win/Mac/Web) and these emails are using windows-874 character set. Thai language in the subject always appears correctly though.
If configuring Outlook manually to send emails in UTF-8, the emails will display properly when being displayed by web mail.

We employ a workaround of editing UIxMailPartHTMLViewer.m to make it work.

Step 1:
In file /SOGo/UI/MailPartViewers/UIxMailPartHTMLViewer.m
Insert the following at line number 78
{ @"windows-874", XML_CHAR_ENCODING_ERROR},

After

static xmlCharEncoding
_xmlCharsetForCharset (NSString *charset)

Step 2:
Compile SOGo source code with GNUMake (following SOGo documentation)

Step 3:
Replace binary file name "MailPartViewers" to production server at "/usr/lib/GNUstep/SOGo/MailPartViewers.SOGo/MailPartViewers"
Then restart sogo service

Steps To Reproduce

Send email with Thai content from Microsoft Outlook to SOGo
Open email in SOGo web mail

Tagsthai, utf-8, webmail

Activities

ingo-aware

ingo-aware

2025-02-11 09:38

reporter  

Thai_correct.png (25,794 bytes)   
Thai_correct.png (25,794 bytes)   
Thai_garbled.png (183,681 bytes)   
Thai_garbled.png (183,681 bytes)   
qhivert

qhivert

2025-02-11 09:46

administrator   ~0018077

Hello, thanks to have investigated and found a fix.
Would you be willing to make a Pull Request there -> https://github.com/Alinto/sogo ?

ingo-aware

ingo-aware

2025-02-11 10:17

reporter   ~0018078

Created pull request as advised. https://github.com/Alinto/sogo/pull/363

qhivert

qhivert

2025-02-11 10:21

administrator   ~0018079

Great, thank your for your contribution ;)

Issue History

Date Modified Username Field Change
2025-02-11 09:38 ingo-aware New Issue
2025-02-11 09:38 ingo-aware Tag Attached: thai
2025-02-11 09:38 ingo-aware Tag Attached: utf-8
2025-02-11 09:38 ingo-aware Tag Attached: webmail
2025-02-11 09:38 ingo-aware File Added: Thai_correct.png
2025-02-11 09:38 ingo-aware File Added: Thai_garbled.png
2025-02-11 09:46 qhivert Note Added: 0018077
2025-02-11 09:46 qhivert Assigned To => qhivert
2025-02-11 09:46 qhivert Status new => feedback
2025-02-11 10:17 ingo-aware Note Added: 0018078
2025-02-11 10:17 ingo-aware Status feedback => assigned
2025-02-11 10:21 qhivert Note Added: 0018079
2025-02-11 10:21 qhivert Status assigned => resolved
2025-02-11 10:21 qhivert Resolution open => fixed