Uploaded image for project: 'WebTop'
  1. WebTop
  2. WT-841

Character encoding of text parts is not always correct

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • Mail
    • None
    • 5.8.4
    • release
    • 5.9.6
    • wt-5.10.2
    • 0386

    Description

      Text parts that specify a character encoding are displayed using the stated encoding.

      Text parts that do not specify a character encoding are displayed using always UTF-8, which may not be the intended original encoding, resulting in wrong accented and special characters.
      Other clients can correctly display them, so there must be some way to guess this encoding, maybe from other text parts of the same email that have a specified character encoding.

      We also discovered that on NethServer a missing charset in content-type may cause some internal JavaMail code to add a default charset of "us-ascii" on content-type string, misleading the guessing code.
      To solve this we had to add a workaround to look directly in the headers instead of using JavaMail getContentType() directly. 

      Attachments

        Activity

          People

            gabriele.bulfon Gabriele Bulfon
            gabriele.bulfon Gabriele Bulfon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package