Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #9 (accepted bug)

Modify

Opened 2 years ago

Last modified 6 months ago

Wrong UTF-8 Support

Reported by: opiopi Owned by: somebody
Priority: normal Milestone: YAM 2.8
Component: charset handling Version: 2.5
Severity: major Keywords:
Cc: Blocked By:
Blocking:

Description (last modified by damato) (diff)

Hi Develoers

I think YAM does not support the UTF-8 encoding correct.

Here is a Step by Step example: 1. Write a new Mail (Type and To and Subject). 2. Switch to the Options Tab. 3. Select UTF-8 as Charset. 4. Switch back to the Message Tab. 5. Type some non ASCII Letters (e.g. the Euro Sign and ��� ��� �). 6. Click "Hold". 7. Switch to the Outguing Folder. 8. Select the Mail you just wrote. 9. Click Read in the Toolbar. 10. Look at the Content-Type it's text/plain; charset=UTF-8 11. But in the Mail you see "? ? ???" but it should "� ��� ��� �"

The cause it that YAM does not encode the Mail to UTF-8 if you click on the "Hold" Button. If you then open the Mail for Read YAM seems to try to decode the UTF-8 Mail but can't find any UTF-8 sequence and you see the question marks.

Hope anybody can fix that...

TIA

Best Regards Frank (Opi) Weber


Moved from SF:
https://sourceforge.net/tracker/?func=detail&aid=2084854&group_id=13560&atid=113560

Attachments

Change History

comment:1 Changed 2 years ago by damato

  • Description modified (diff)

comment:2 Changed 2 years ago by damato

This is not really a bug, but more or less a not yet completed feature.

We introduced the modifyable character set for writing new mails recently only for the purpose to fake the character set of an outgoing mail. That means you can type you mail as usual (most probably using some kind of eastern european characters) and set the charset to something like ISO-8859-42, at least anything different than ISO-8859-1, which AmigaOS uses by default. The receiver of the mail will then be able to read the mail properly. But YAM does NO reencoding of the mail corresponding to the new charset. Only the charset information in the mail's headers will be adopted.


Moved from SF. Original poster: thboeckel
While this works quite good for any Latin-1-alike charset UTF8 is the big exception from the rule as it requires special character sequences to be decoded correctly. Since YAM doesn't do any reencoding when changing the charset the necessary sequences are missing. When YAM then later tries to decode the mail it will try to convert the falsely UTF8 characters back to Latin-1, and of course must fail to find suitable replacement characters. Hence question marks will be produced.

An "quick'n'easy" fix for this issue would be to exclude UTF8 from the list of charsets for writing mails. The complete fix would be to make YAM *and* TE.mcc able to handle arbitrary charsets, or even better completely switch to UTF8 internally.

comment:3 Changed 2 years ago by damato

  • Priority changed from major to undecided
  • Severity set to major

comment:4 Changed 2 years ago by damato

  • Component changed from nightly build to charset handling

comment:5 Changed 2 years ago by damato

  • Cc yamos-svn@… removed

comment:6 Changed 2 years ago by damato

  • Priority changed from undecided to normal
  • Status changed from new to accepted
  • Reporter changed from opiopi@… to Opi
  • Milestone set to YAM 2.7

comment:7 Changed 2 years ago by damato

  • Reporter changed from Opi to opiopi

comment:8 Changed 6 months ago by damato

  • Description modified (diff)
  • Milestone changed from YAM 2.7 to YAM 2.8
View

Add a comment

Modify Ticket

Action
as accepted
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber

  • Frank Weber(Reporter)