A Good Coder
Wednesday, April 21, 2010
java email cut off
deleting all non-ascii and control char will fix the problem - this assume you expect English only input.
String truncated = mailBody.replaceAll("[^\\p{ASCII}]", "").replaceAll("\\p{Cntrl}", "");
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
Followers
No comments:
Post a Comment