voodoodyne / subethasmtp

SubEtha SMTP is a Java library for receiving SMTP mail
Other
344 stars 138 forks source link

explicitly specify charset when converting String to bytes #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are three calls to String.getBytes which use the default locale and 
relate to SMTP keywords. It is safer to explicitly specify the required 
character set (US-ASCII). At least it limits the effect of unexpected 
problems.

Original issue reported on code.google.com by hontvari@flyordie.com on 3 Sep 2009 at 10:19

GoogleCodeExporter commented 9 years ago

Original comment by lhori...@gmail.com on 3 Sep 2009 at 10:37