> >>> Maybe doing ࣕ would be better in a general setting?

> Well, i was speaking about doing out.write("ࣕ") in a _servlet_.
> I beleive that if we do it, we'll get the ࣕ sequence output
> directly to the html page and the browser may recognize this as
> a HTML encoding of a unicode character. This is a reasonable
> option even if we have ISO-8859-1 as our page encoding.
>
> MA> If you do this through a "System.out.write(&#2261)", it might be
> MA> interpretted as a byte instead of a character...
>
> Well, i beleive that if we really do 'System.out.write("ࣕ");'
> we'll get "ࣕ" on our system console, but this quite useless,
> isn't it? Sure it won't "be interpreted as a byte".
>
> Best regards, Anton

Well I had temporarily confused ࣕ with legal java hex, 0x2261.  I
meant to say "System.out.write(0x2261)"

Bringing up the "�" representation is a good idea, but html character
entities should be decimal numbers and "\u2261"  converted from hex to
decimal is 8801.

Originally, I highly doubted that something as high as 8801 was doable as
an HTML character entity.  According to "Webmaster in a Nutshell", these
HTML character entities must be ISO-8859-1 characters, and not even the
full 256 ISO-8859-1 character set is supported.

However I checked anyway and "≡" works great --just to show how
accurate a book from June 99 is.  I ran:

                for(int i=0x2200; i<=0x22ff; i++)
                {
                        if ( i % 16 == 0 ) out.println("<tr>");
                        out.print("<td>&#"+i+";");
                }

To print the entire "Unicode Mathematical Operators" set.  About 1/4
displayed in Internet Explorer 6.0, and the full set displayed in Netscape
6.1 and Opera 6.0.

So it looks like 'System.out.println("&8801;");' is the solution as you
said.

                                                Michael Akerman

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to