This content has been marked as final.
Show 7 replies
-
1. Re: HTML source codes has some characters like
chicochen Oct 1, 2007 11:09 PM (in response to chicochen)IE browser display these native characters rightly, incuding all native characters come from database, but the html source code has problem.
-
2. Re: HTML source codes has some characters like
chicochen Oct 11, 2007 12:43 AM (in response to chicochen)Pls refer to the img, anyone can help me?
[img]http://www.0515px.com/upload/Snap1.jpg[/img] -
3. Re: HTML source codes has some characters like
denis-karpov Oct 11, 2007 4:52 AM (in response to chicochen)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(';');*/ }
-
4. Re: HTML source codes has some characters like
chicochen Oct 11, 2007 5:19 AM (in response to chicochen)so how can I solve it, need to re-compile the jsf from source?
-
5. Re: HTML source codes has some characters like
chicochen Oct 11, 2007 5:49 AM (in response to chicochen)How about send this new HtmlUtills.class to me?
I will replace the old one, is it enough? -
6. Re: HTML source codes has some characters like
denis-karpov Oct 11, 2007 10:58 AM (in response to chicochen)Your box chicochen on hotmail.com doesn't accept my message.
-
7. Re: HTML source codes has some characters like
chicochen Oct 11, 2007 2:10 PM (in response to chicochen)Pls send it to chicocn@gmail.com, thanks.