The following issue has been updated:
Updater: Vincent Massol (mailto:[EMAIL PROTECTED])
Date: Sat, 17 Apr 2004 9:02 AM
Changes:
description changed from Could you please use same encoding to get result
from the server through servlet
output stream? When I run the following test case with Cactus, the international
characters are corrupted to '?'. Since, the server side is using 'ISO-8859-1'
encoding to send the result and the client side is using platform default
encoding to get the result from server, then the ISO-8859-1 encoding can not
send the double byte characters without corruption.
Steps to Reproduce:
Run the following test case with Cactus.
Actual Results:
> junit.framework.ComparisonFailure: expected:<aaa> but was:<???>
Expected Results:
> The '???' part shows 3 different double byte characters.
package report;
import javax.servlet.ServletException;
import org.apache.cactus.ServletTestCase;
public class TestServlet2 extends ServletTestCase {
public TestServlet2(String name) {
super (name);
}
public void testDoGet() throws ServletException {
String hiragana1 = "\u305d"; // Hiragana So
String katakana1 = "\u30bd"; // Katakana So
String cjk1 = "\u8868"; // Kanji Hyou
String actualTest = hiragana1 + katakana1 + cjk1;
assertEquals("aaa", actualTest);
}
} to Could you please use same encoding to get result from the server through servlet
output stream? When I run the following test case with Cactus, the international
characters are corrupted to '?'. Since, the server side is using 'ISO-8859-1'
encoding to send the result and the client side is using platform default
encoding to get the result from server, then the ISO-8859-1 encoding can not
send the double byte characters without corruption.
Steps to Reproduce:
Run the following test case with Cactus.
Actual Results:
> junit.framework.ComparisonFailure: expected:<aaa> but was:<???>
Expected Results:
> The '???' part shows 3 different double byte characters.
package report;
import javax.servlet.ServletException;
import org.apache.cactus.ServletTestCase;
public class TestServlet2 extends ServletTestCase {
public TestServlet2(String name) {
super (name);
}
public void testDoGet() throws ServletException {
String hiragana1 = "\u305d"; // Hiragana So
String katakana1 = "\u30bd"; // Katakana So
String cjk1 = "\u8868"; // Kanji Hyou
String actualTest = hiragana1 + katakana1 + cjk1;
assertEquals("aaa", actualTest);
}
}
environment changed from Operating System: Windows NT/2K
Platform: PC to Operating System: Windows NT/2K
Platform: PC
priority changed to Major
Fix Version changed to 1.5-beta1
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/CACTUS-29?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/CACTUS-29
Here is an overview of the issue:
---------------------------------------------------------------------
Key: CACTUS-29
Summary: The redirector can not send the double byte characters
Type: Bug
Status: Resolved
Priority: Major
Resolution: FIXED
Project: Cactus
Components:
Framework
Fix Fors:
1.5-beta1
Versions:
1.3
Assignee: Vincent Massol
Reporter: ahasegawa
Created: Tue, 15 Oct 2002 2:52 AM
Updated: Sat, 17 Apr 2004 9:02 AM
Environment: Operating System: Windows NT/2K
Platform: PC
Description:
Could you please use same encoding to get result from the server through servlet
output stream? When I run the following test case with Cactus, the international
characters are corrupted to '?'. Since, the server side is using 'ISO-8859-1'
encoding to send the result and the client side is using platform default
encoding to get the result from server, then the ISO-8859-1 encoding can not
send the double byte characters without corruption.
Steps to Reproduce:
Run the following test case with Cactus.
Actual Results:
> junit.framework.ComparisonFailure: expected:<aaa> but was:<???>
Expected Results:
> The '???' part shows 3 different double byte characters.
package report;
import javax.servlet.ServletException;
import org.apache.cactus.ServletTestCase;
public class TestServlet2 extends ServletTestCase {
public TestServlet2(String name) {
super (name);
}
public void testDoGet() throws ServletException {
String hiragana1 = "\u305d"; // Hiragana So
String katakana1 = "\u30bd"; // Katakana So
String cjk1 = "\u8868"; // Kanji Hyou
String actualTest = hiragana1 + katakana1 + cjk1;
assertEquals("aaa", actualTest);
}
}
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]