You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "heyoulin (JIRA)" <ji...@apache.org> on 2013/05/12 17:37:15 UTC
[jira] [Created] (DIRMINA-943) TextLineDecoder unexpected result in
multibyte charset
heyoulin created DIRMINA-943:
--------------------------------
Summary: TextLineDecoder unexpected result in multibyte charset
Key: DIRMINA-943
URL: https://issues.apache.org/jira/browse/DIRMINA-943
Project: MINA
Issue Type: Bug
Components: Core
Affects Versions: 3.0.0-trunk
Environment: windows7 x64 jdk1.6.0.45
Reporter: heyoulin
decoded = new String(buffer.array());
should be:
decoded = buffer.toString();
or
decoded = new String(buffer.array(),0,buffer.limit());
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira