---------- Forwarded message ----------
From: [email protected] <[email protected]>
Date: Thu, Apr 9, 2009 at 6:37 AM
Subject: [google-appengine] Re: How to change the
JspCompiler(org.apache.jasper.JspC)'s encoding ?
To: Google App Engine <[email protected]>
you must encode your text to decimal UTF-8 charset.
invoke method example:
public static String encode(String str) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < str.length(); ++i) {
char c = str.charAt(i);
int a = (char) c;
if (a > 255) {
sb.append("&#").append(a).append(';');
} else {
sb.append(c);
}
}
return sb.toString();
}
You can also visit the website below:
http://jxva-framework.appspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---