----- Original Message ----- From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Friday, September 12, 2008 6:01 AM
Subject: RE: Migrating to tomcat 6 gives formatted currency amounts problem


From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem

http://www.kewlstuff.co.za/test/test.htm
What do you see in this test page?

Depends on which character encoding I choose to view the page in. For the declared UTF-8, FF3 shows the invalid hex value at that spot in your page. If I override that with say ISO-8859-15, the R in a circle appears. Note that no font is involved here, just the encoding declaration.

You need to get over this fixation with fonts - they have absolutely nothing to do with this issue. A font is just a graphical description of how to draw one or more code points on an output device, based on the font designer's take on what each code point should look like. It's the character encoding that tells the message recipient what code point to generate for a given bit pattern; only after the code point is determined does any font get involved to create the visible symbol.

This is a great site to get lost in for a few days:
http://www.unicode.org/

- Chuck

Yes, I do that, mix terminology....

But can I just get your opinion on this...

If this locale stuff is in fact defaulting to an ISO char set that can do these symbols... and say you where making a non english page, say Japanese... do you think that its possible to use it?

I've actually now seen examples on the web that are doing it Wil's way, they using the getCurrencyInstance to make the currency symbols. And it is the most natural thing in the world for a coder to want to do... the functions are synonymous with internationalization.
Its probably in the Java manaul...

But I'm thinking its a US/Eng only methodology... when applied to a web page.
Do you think using getCurrencyInstance is generalizable in other languages?

When you say.... "If I override that with say ISO-8859-15", is that the whole page you talking about, or it possible to have different character encoding sections in a web page.... thats another area thats confusing me now, because if I do look at that test page in a MS tool... it displays correctly with mixed encodings?

You see... people are saying in a well designed web page... its a suggestion, I get that. But when you choose a font in a text editor like Swing or Word, you are also picking some character set... and thats whats been injected into the page as its been formed... Or in a MS localization panel, if you choose you want Verdana as a default font... these systems dont throw character sets at users, it just picks one in the background... thus my analogy... and its the cross over between these systems thats got me confused ;)

I screw up terminology... ok we all know that.... but
Does Wil need to worry about the way he is doing it?... thats all I'm asking... I think so...

Thanks...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to