[ https://issues.apache.org/jira/browse/CXF-4208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239644#comment-13239644 ]
Daniel Kulp commented on CXF-4208: ---------------------------------- With any multi-byte charset you won't be able to reliably grab a small chunk of bytes and be able to convert that to a string. Your best bet is to do a new InputStreamReader(inputStream) to create a reader and then read a chunk of char's. > MultiByte Character is broken > ----------------------------- > > Key: CXF-4208 > URL: https://issues.apache.org/jira/browse/CXF-4208 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.5.2 > Environment: Web Application on Tomcat 6.0.32 > Reporter: Keunil Yoon > > Hi. > I am using org.apache.cxf.io.CacheAndWriteOutputStream class and writeCacheTo > method. > As I know when message over 64kb, messese written to file system (Cache) and > read. > But when reading It get 1024byte from file and convert to new String like this > IOUtils.newStringFromBytes(bytes, charsetName, 0, x) > When multi-byte data (ex. Korean) is broken when reading from file system > cache. > Because data is consisted by multi byte charaters. > How I can fix this. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira