[jboss-user] [JBoss Seam] - Re: HTML source codes has some characters like
denis-karpov
do-not-reply at jboss.com
Thu Oct 11 04:52:45 EDT 2007
It is always the problem for non-english speaking people.
In this case problem is in JSF RI.
We have patch it for us just yesterday.
com/sun/faces/util/HtmlUtils.java
/**
| * Writes a character as a decimal escape. Hex escapes are smaller than
| * the decimal version, but Netscape didn't support hex escapes until
| * 4.7.4.
| */
| static private void _writeDecRef(Writer out, char ch) throws IOException {
| if (ch == '\u20ac') {
| out.write("?");
| return;
| }
| else {
| out.write(ch);
| return;
| }
| /* out.write("&#");
| // Formerly used String.valueOf(). This version tests out
| // about 40% faster in a microbenchmark (and on systems where GC is
| // going gonzo, it should be even better)
| int i = (int) ch;
| if (i > 10000) {
| out.write('0' + (i / 10000));
| i = i % 10000;
| out.write('0' + (i / 1000));
| i = i % 1000;
| out.write('0' + (i / 100));
| i = i % 100;
| out.write('0' + (i / 10));
| i = i % 10;
| out.write('0' + i);
| } else if (i > 1000) {
| out.write('0' + (i / 1000));
| i = i % 1000;
| out.write('0' + (i / 100));
| i = i % 100;
| out.write('0' + (i / 10));
| i = i % 10;
| out.write('0' + i);
| } else {
| out.write('0' + (i / 100));
| i = i % 100;
| out.write('0' + (i / 10));
| i = i % 10;
| out.write('0' + i);
| }
|
| out.write(';');*/
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093921#4093921
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093921
More information about the jboss-user
mailing list