You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "wan jian ming (JIRA)" <ji...@apache.org> on 2012/11/20 07:21:59 UTC
[jira] [Created] (VYSPER-334) Plain.java doesn't decode correctly,
error appears in multi-byte character;
wan jian ming created VYSPER-334:
------------------------------------
Summary: Plain.java doesn't decode correctly, error appears in multi-byte character;
Key: VYSPER-334
URL: https://issues.apache.org/jira/browse/VYSPER-334
Project: VYSPER
Issue Type: Bug
Components: core protocol
Affects Versions: 0.7
Environment: window.
Reporter: wan jian ming
decoded = Base64.decodeBase64(base64Encoded.getText().getBytes());
char ch = (char) decoded[i];
if (ch != 0) {
stringBuilder.append(ch);
in multi-byte character environment, one char may composed of many bytes, so it is not correct here to make one byte to one char.
--
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
[jira] [Commented] (VYSPER-334) Plain.java doesn't decode
correctly, error appears in multi-byte character;
Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VYSPER-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500906#comment-13500906 ]
Bernd Fondermann commented on VYSPER-334:
-----------------------------------------
good catch. fixed in r1411574
> Plain.java doesn't decode correctly, error appears in multi-byte character;
> ---------------------------------------------------------------------------
>
> Key: VYSPER-334
> URL: https://issues.apache.org/jira/browse/VYSPER-334
> Project: VYSPER
> Issue Type: Bug
> Components: core protocol
> Affects Versions: 0.7
> Environment: window.
> Reporter: wan jian ming
>
> decoded = Base64.decodeBase64(base64Encoded.getText().getBytes());
> char ch = (char) decoded[i];
> if (ch != 0) {
> stringBuilder.append(ch);
> in multi-byte character environment, one char may composed of many bytes, so it is not correct here to make one byte to one char.
--
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
[jira] [Resolved] (VYSPER-334) Plain.java doesn't decode correctly,
error appears in multi-byte character;
Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VYSPER-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernd Fondermann resolved VYSPER-334.
-------------------------------------
Resolution: Fixed
Fix Version/s: 0.8
Assignee: Bernd Fondermann
> Plain.java doesn't decode correctly, error appears in multi-byte character;
> ---------------------------------------------------------------------------
>
> Key: VYSPER-334
> URL: https://issues.apache.org/jira/browse/VYSPER-334
> Project: VYSPER
> Issue Type: Bug
> Components: core protocol
> Affects Versions: 0.7
> Environment: window.
> Reporter: wan jian ming
> Assignee: Bernd Fondermann
> Fix For: 0.8
>
>
> decoded = Base64.decodeBase64(base64Encoded.getText().getBytes());
> char ch = (char) decoded[i];
> if (ch != 0) {
> stringBuilder.append(ch);
> in multi-byte character environment, one char may composed of many bytes, so it is not correct here to make one byte to one char.
--
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