This content has been marked as final.
Show 2 replies
-
1. Re: Task form utf-8 handling
kornilovs Dec 3, 2012 5:09 AM (in response to alexont)Resteasy 2.3.5.Final has function "setMediaType" what allowed force madiatype and charset.
Example of usage for jbpm-console-server FormProcessingFacade.java
if("text".equals(mType) && "plain".equals(mSubtype)) { // RFC2045: Each part has an optional "Content-Type" header // that defaults to "text/plain". // Can go into process without conversion if ( !part.isContentTypeFromMessage()) { //log.error("getBodyAsString "+part.getBodyAsString()); part.setMediaType(MediaType.TEXT_PLAIN_TYPE); //log.error("getBodyAsString "+part.getBodyAsString()); } ....
}
-
2. Re: Task form utf-8 handling
alexont Dec 4, 2012 3:55 PM (in response to kornilovs)Thank you.
Regards,
Alex