R
Roedy Green
When sending an email with Javamail, it is safe to use UTF-8 encoding.
Is there anyone who can't read it today?
Is there anyone who can't read it today?
Roedy said:When sending an email with Javamail, it is safe to use UTF-8 encoding.
Is there anyone who can't read it today?
- If your mail's texts only contain characters which can be encoded in
ASCII, use ASCII for the mail.
- If your mail's texts only contain characters which can be encoded
within the range of Latin 1, use ISO-8859-1.
- Only if you have other characters, too, and if you don't want to go
through the trouble of figuring out for each destination the most common
encoding which still includes your characters, then use UTF-8.
Roedy said:I guess I should play it safe and allow the Charset to be
configurable, setting everyone's to UTF-8 default.
I would set the default to ASCII. And when reading in a mail's text for
distribution probably run a check if it is all 7-bit. If not, give a
warning, error, or silently switch to UTF-8.
in your input, and you copy that stuff to the outgoing mails, overriding
any defaults. That way the people who contribute the language specific
texts can set the "best" encoding for the text while providing it.
Roedy Green said:When sending an email with Javamail, it is safe to use UTF-8 encoding.
Is there anyone who can't read it today?
If I understand correctly, the users of your program are going to be
application translators (or more generally, computer-savy linguists), so
they should have software that can handle UTF-8. If not, you could accompany
your software with tutorials on setting up a unicode-enabled system for the
various popular OSes.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.