Hi Experts, Can you plese let me know , how to send a mail in non-ascii character. to be more specific, how do i send a mail with text the is UTF-8 encoded. When the mail is sent , the extended ASCII character appear as ?? in the Microsoft OUTLOOK 2000 however when i change the encoding to UTF-8 they appear proper.. Thank you in advance ..
nagwww Welcome to the Java Ranch, we hope you�ll enjoy visiting as a regular however, your name is not in keeping with our naming policy here at the ranch. Please re-register under an appropriate name as shown in the policy. Thanks again and we hope to see you around the ranch!!
------------------ Dave Sun Certified Programmer for the Java� 2 Platform
Hi Nag, You must set the correct headers before the body of your mail:
Consider using iso-8859-1 instead as UTF-8 might not be supported by all mail clients. Also quoted-printable is a more common format (all characters outside ASCII are encoded using =XX where XX stands for the character code). For instance, letter '�' will be encoded as =E9. Also, using the JavaMail API should facilitate your work, as encoding of headers is also a difficult task(when names in To:, Cc:, or From: fields are using accented chars). Hope this helps, Beno�t