Skip to content

Instantly share code, notes, and snippets.

@shaik2many
Created February 26, 2015 17:09
Show Gist options
  • Save shaik2many/b238f1d1153b2b1be06f to your computer and use it in GitHub Desktop.
Save shaik2many/b238f1d1153b2b1be06f to your computer and use it in GitHub Desktop.
String folderNameDecoded = new String(folder_name.getBytes(Charset.forName("UTF-8")), Charset.forName("ISO-8859-1")); 4:59 PM
For textareas, you need to replace newline chars as follows:
response.getWriter().print(new FolderService().getFolderDocs(parent_id,project_id,business_id,false, 0).replaceAll("\n", "\\\\n"));
//struts.properties
struts.i18n.encoding=ISO-8859-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment