You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Sanjiva Weerawarana <sa...@watson.ibm.com> on 2000/07/18 11:49:21 UTC
Re: internationlization
I'm afraid internationalization is not my area of strength.
Can u please indicate what may be going wrong? If someone would
like to take on ensuring that the SOAP codebase is properly
internationalized that'll be dandy! Any takers?
Sanjiva.
----- Original Message -----
From: Jun-Liang Chen
To: soap-user@xml.apache.org
Sent: Tuesday, July 18, 2000 5:02 AM
Subject: internationlization
Dear All,
Trivial Question, Is SOAP currently support the non-English characters in the message body?
I did a test from client requesting the message from server sending chinese message in Big5
but got "?????????....." on the screen. It looks like the problem was in the serialization/deserialization
process. If that is true, any fix or way to go around? Thanks!
Jun-Liang Chen
jlchen@intumit.com
www.intumit.com
Re: internationlization
Posted by Jun-Liang Chen <jl...@intumit.com>.
Hi,
Thanks for the quick response. I wrote a small test service code to check whether I can get a text
in chinese from the server. Here is central piece of the code,
import org.apache.soap.util.xml.*;
import org.apache.soap.util.DOMUtils;
public class TextService {
public String getText ( ) throws Exception {
File ff = new File("news.txt"); // for testing only
FileReader rr = new FileReader (ff);
BufferedReader in = new BufferedReader(rr);
String out;
String ret ="<![CDATA[";
ret += "<?xml version='1.0' encoding='Big5' ?>";
ret += "<?xml:stylesheet type='text/xsl' href='quotes.xsl'?>";
try {
while ( (out=in.readLine()) != null ) {
System.out.println(out);
ret += out + "\n";
}
} catch ( Exception e ) { System.err.println("Something Wrong!"); }
ret +="]]>";
return ret;
}
}
I checked it out on the server screen and indeed give me the correct message but when received on the
client side it just displayed ???????......., any suggestions and comments?
Jun-Liang Chen
jlchen@intumit.com
www.intumit.com
----- Original Message -----
From: Guy Galil
To: soap-user@xml.apache.org
Sent: Tuesday, July 18, 2000 7:21 PM
Subject: Re: internationlization
I think in the XML using cdata for all string values can solve this problem.
This is also a better solution then escaping special characters as done in the current code.
Guy
----- Original Message -----
From: Sanjiva Weerawarana
To: soap-user@xml.apache.org
Cc: Apache SOAP
Sent: Tuesday, July 18, 2000 11:49 AM
Subject: Re: internationlization
I'm afraid internationalization is not my area of strength.
Can u please indicate what may be going wrong? If someone would
like to take on ensuring that the SOAP codebase is properly
internationalized that'll be dandy! Any takers?
Sanjiva.
----- Original Message -----
From: Jun-Liang Chen
To: soap-user@xml.apache.org
Sent: Tuesday, July 18, 2000 5:02 AM
Subject: internationlization
Dear All,
Trivial Question, Is SOAP currently support the non-English characters in the message body?
I did a test from client requesting the message from server sending chinese message in Big5
but got "?????????....." on the screen. It looks like the problem was in the serialization/deserialization
process. If that is true, any fix or way to go around? Thanks!
Jun-Liang Chen
jlchen@intumit.com
www.intumit.com
Re: internationlization
Posted by Jun-Liang Chen <jl...@intumit.com>.
Hi,
Thanks for the quick response. I wrote a small test service code to check whether I can get a text
in chinese from the server. Here is central piece of the code,
import org.apache.soap.util.xml.*;
import org.apache.soap.util.DOMUtils;
public class TextService {
public String getText ( ) throws Exception {
File ff = new File("news.txt"); // for testing only
FileReader rr = new FileReader (ff);
BufferedReader in = new BufferedReader(rr);
String out;
String ret ="<![CDATA[";
ret += "<?xml version='1.0' encoding='Big5' ?>";
ret += "<?xml:stylesheet type='text/xsl' href='quotes.xsl'?>";
try {
while ( (out=in.readLine()) != null ) {
System.out.println(out);
ret += out + "\n";
}
} catch ( Exception e ) { System.err.println("Something Wrong!"); }
ret +="]]>";
return ret;
}
}
I checked it out on the server screen and indeed give me the correct message but when received on the
client side it just displayed ???????......., any suggestions and comments?
Jun-Liang Chen
jlchen@intumit.com
www.intumit.com
----- Original Message -----
From: Guy Galil
To: soap-user@xml.apache.org
Sent: Tuesday, July 18, 2000 7:21 PM
Subject: Re: internationlization
I think in the XML using cdata for all string values can solve this problem.
This is also a better solution then escaping special characters as done in the current code.
Guy
----- Original Message -----
From: Sanjiva Weerawarana
To: soap-user@xml.apache.org
Cc: Apache SOAP
Sent: Tuesday, July 18, 2000 11:49 AM
Subject: Re: internationlization
I'm afraid internationalization is not my area of strength.
Can u please indicate what may be going wrong? If someone would
like to take on ensuring that the SOAP codebase is properly
internationalized that'll be dandy! Any takers?
Sanjiva.
----- Original Message -----
From: Jun-Liang Chen
To: soap-user@xml.apache.org
Sent: Tuesday, July 18, 2000 5:02 AM
Subject: internationlization
Dear All,
Trivial Question, Is SOAP currently support the non-English characters in the message body?
I did a test from client requesting the message from server sending chinese message in Big5
but got "?????????....." on the screen. It looks like the problem was in the serialization/deserialization
process. If that is true, any fix or way to go around? Thanks!
Jun-Liang Chen
jlchen@intumit.com
www.intumit.com
Re: internationlization
Posted by Guy Galil <Gu...@ViryaNet.com>.
I think in the XML using cdata for all string values can solve this problem.
This is also a better solution then escaping special characters as done in the current code.
Guy
----- Original Message -----
From: Sanjiva Weerawarana
To: soap-user@xml.apache.org
Cc: Apache SOAP
Sent: Tuesday, July 18, 2000 11:49 AM
Subject: Re: internationlization
I'm afraid internationalization is not my area of strength.
Can u please indicate what may be going wrong? If someone would
like to take on ensuring that the SOAP codebase is properly
internationalized that'll be dandy! Any takers?
Sanjiva.
----- Original Message -----
From: Jun-Liang Chen
To: soap-user@xml.apache.org
Sent: Tuesday, July 18, 2000 5:02 AM
Subject: internationlization
Dear All,
Trivial Question, Is SOAP currently support the non-English characters in the message body?
I did a test from client requesting the message from server sending chinese message in Big5
but got "?????????....." on the screen. It looks like the problem was in the serialization/deserialization
process. If that is true, any fix or way to go around? Thanks!
Jun-Liang Chen
jlchen@intumit.com
www.intumit.com
Re: internationlization
Posted by Guy Galil <Gu...@ViryaNet.com>.
I think in the XML using cdata for all string values can solve this problem.
This is also a better solution then escaping special characters as done in the current code.
Guy
----- Original Message -----
From: Sanjiva Weerawarana
To: soap-user@xml.apache.org
Cc: Apache SOAP
Sent: Tuesday, July 18, 2000 11:49 AM
Subject: Re: internationlization
I'm afraid internationalization is not my area of strength.
Can u please indicate what may be going wrong? If someone would
like to take on ensuring that the SOAP codebase is properly
internationalized that'll be dandy! Any takers?
Sanjiva.
----- Original Message -----
From: Jun-Liang Chen
To: soap-user@xml.apache.org
Sent: Tuesday, July 18, 2000 5:02 AM
Subject: internationlization
Dear All,
Trivial Question, Is SOAP currently support the non-English characters in the message body?
I did a test from client requesting the message from server sending chinese message in Big5
but got "?????????....." on the screen. It looks like the problem was in the serialization/deserialization
process. If that is true, any fix or way to go around? Thanks!
Jun-Liang Chen
jlchen@intumit.com
www.intumit.com