-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending a mail in charsets other than Latin #413
Comments
Hi @Mihara, According to the Open B2F (aka winlink) protocol, "The body of the message is limited to ASCII characters ...". However, I've found that Winlink Express and the CMS' SMTP bridge encodes and decodes the body as ISO-8859-1. Since we're trying to be fully compatible with the Winlink system, Pat also uses ISO-8859-1. Winlink Express and CMS' SMTP bridge ignores the So yes, we can add an option allowing the user to set a different charset. However, this will not work well with other Winlink clients until they also adopt this. We can certainly look into providing a warning if we detect unicode characters not valid in ISO-8859-1. |
In my opinion, the best solution would be to get the Winlink ecosystem to migrate to UTF-8 (and set the Content-Type header). |
Absolutely. But in my experience, this sort of problem is rarely, if ever, even acknowledged in amateur radio software. (Apparently, the huge number of Japanese amateurs doesn't do digital beyond FT8, or if they do, they don't let anyone join.) With something as extensive as Winlink, which seems to be running on Windows XP in the wild as often as not, chances of this happening aren't very high. A warning if characters won't fit into ISO-8859-1 should be a sensible palliative measure until something can be done about Winlink at large. I'd write it myself and send in a PR, but my skill with golang is currently minimal, bordering on nonexistent. |
Yes, I know 😞 I would love to add opt-in UTF-8 encoding, but given that it will only work P2P between two Pat users I'm afraid it will cause more confusion than doing any good. A third alternative is to "Q" encode characters that are not representative in ISO-8859-1. Then we would still be compliant with ISO-8859-1, but the characters would be readable in supported clients (i.e. Pat). If we're in luck, they might be decoded properly when reaching regular email clients via SMTP. In fact, this is what we do with non-ascii characters in the subject line. I think that would be more useful than the We should still provide the warning though, as Winlink Express users will have a hard time manually deciphering them. |
I'm not entirely sure this is worth the trouble, if only because a response message sent from the Internet side will not be Q-encoded in turn, which will further confuse the users who don't even know Winlink is involved. 😅 |
For reference: Out of curiosity, I tried to make WoAD send a message containing Cyrillic to [email protected]. The result was rather curious.
Now, some of that is the result of WoAD exporting this to a |
Further reference information: https://winlink.userecho.com/communities/1/topics/94-rms-express-decoding-utf-8-charset
Dated 12 years ago... |
When I try to use the HTTP interface to compose a message using Cyrillic characters, the result is obviously useless:
When attempting to compose an email from command line, the result is the same. I don't see a way to set a different content-type anywhere, but the presence of a content-type kind of implies that other charsets should be possible.
Winlink documentation says nothing regarding charsets in B2F, and incoming messages contain no charset information,
so I'm not sure they are.and messages arriving from the Internet seem to assume ISO-8859-1 and likewise mangle cyrillic. But if so, why have a content-type header at all?Is this a limitation of Pat, or a limitation of Winlink system in general? IfSince this is a general limitation of Winlink, maybe Pat should prevent the user from inputting characters that will be mangled on saving, or display an error...The text was updated successfully, but these errors were encountered: