Sorry, it is off the topic.
The following code, out.println("<br>createUnicodeString=") show
\u53D1\u738B123, and out.println("<br>unicode=""\u53D1\u738B123") show the
chinese character code, Why ? In fact, that should be the same, but here one
is I18n, another is /uxxxx.
String cc="���騪?123";
String x = createUnicodeString(cc);
|| out.println("<br>createUnicodeString="); <------- show
\u53D1\u738B123
|| out.println("<br>unicode=""\u53D1\u738B123"); <------- show the chinese
character code
public String createUnicodeString(String source) // this function is
from jdk1.1.6
{ // demo i18n
CollateDemo.java
StringBuffer result = new StringBuffer(source.length());
// .... translate the source to unicode: /uxxxx/uyyyy
return result.toString();
}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html