Sergey Kornilov [
https://community.jboss.org/people/kornilovs] created the discussion
"Re: Task form utf-8 handling"
To view the discussion, visit:
https://community.jboss.org/message/779570#779570
--------------------------------------------------------------
Resteasy 2.3.5.Final has function "setMediaType" what allowed force madiatype
and charset.
http://docs.jboss.org/resteasy/docs/2.3.5.Final/javadocs/org/jboss/restea...
http://docs.jboss.org/resteasy/docs/2.3.5.Final/javadocs/org/jboss/restea...
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()); | |
| | | } |
....
}
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/779570#779570]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]