Issue Details (XML | Word | Printable)

Key: NET-178
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: vibhuti gupta
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

Support for unciode character is missing

Created: 21/Dec/07 04:07 AM   Updated: 21/Feb/08 12:03 PM
Return to search
Component/s: None
Affects Version/s: 1.4
Fix Version/s: 2.0

Time Tracking:
Not Specified

Resolution Date: 21/Feb/08 12:03 PM


 Description  « Hide
I'm using sendMessageData() method of SMTPClient class to obtain a Writer object. The mails i need to send contain unicode characters. The Writer which sendMessageData() method returns, uses "ISO-8859-1" encoding which does not provide support for all unicode characters. Also the encoding is not configurable i.e. there is no method through which i can set the encoding to something else. This issue has delayed the release of my project. I think this is a very major issue which needs to be addressed as soon as possible. Unicode support should be provided by this API or encoding must be made configurable. Please provide me a workaround for this issue. It's very urgent!

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
vibhuti gupta added a comment - 20/Feb/08 05:36 PM
Encoding has been made configurable in SMTP.java as a fix for this bug. For this constructor which takes encoding as argument is also defined in SMTP.java. The same should be done for all the subclasses of SMTP.java such as SMTPClient.java. I'm using sendMessageData() of SMTPClient class and there is no way to define encoding using this class. It will be highly appreciable if there is jar file which contains these fixes so that i can use it in my project. I mean this fix is released as some separate version.

Rory Winston added a comment - 21/Feb/08 12:03 PM
I've added an overloaded constructor to SMTPClient