Johnny Kewl wrote:
If you do decide to look at this link...
http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp#core-locale
The above link seems to be extremely informative, right on the spot for
this thread.
Thanks.
Among other things, it points out that changing the default
Caldarale, Charles R wrote:
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
so, Java is still 16-bit Unicode in its char primitive,
but you can use ints to hold UTF-16 values using 21-bits?
The 21-bit values
- Original Message -
From: André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, September 13, 2008 2:01 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
Johnny Kewl wrote:
If you do decide to look at this link
Caldarale, Charles R wrote:
I'm not sure these days what the normal web character set really is. If
you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling symbol is not
present. However, for any of the ISO-8859-x variants, it is present, using the 163
(0xA3) value you
- 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
2008/9/12 André Warnier [EMAIL PROTECTED]:
Caldarale, Charles R wrote:
I'm not sure these days what the normal web character set really is. If
you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling
symbol is not present. However, for any of the ISO-8859-x variants, it is
OK, Wil you made me do some homework... got it sorted for you
You must not guess the Charset... as we been doing.
Use this function
System.out.print(CharSet : + Charset.defaultCharset().toString());
and thats what you HAVE TO set your page at
On my system it tells me
Then one last thing before I put this in my little black book of things I'm
never going to do... and forget about it forever ;)
This is what windows does
If the machine is on US English...
Regardless of the local I set... German, English, Japanese I set in Java
the charset is
Konstantin Kolinko wrote:
2008/9/12 André Warnier [EMAIL PROTECTED]:
Caldarale, Charles R wrote:
I'm not sure these days what the normal web character set really is. If
you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling
symbol is not present. However, for any of the
2008/9/12 André Warnier [EMAIL PROTECTED]
Konstantin Kolinko wrote:
2008/9/12 André Warnier [EMAIL PROTECTED]:
Caldarale, Charles R wrote:
I'm not sure these days what the normal web character set really is.
If
you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling
- Original Message -
From: André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 12, 2008 10:08 AM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
Caldarale, Charles R wrote:
I'm not sure these days what
Konstantin Kolinko wrote:
2008/9/12 André Warnier [EMAIL PROTECTED]
Konstantin Kolinko wrote:
2008/9/12 André Warnier [EMAIL PROTECTED]:
Caldarale, Charles R wrote:
I'm not sure these days what the normal web character set really is.
If
you're referring to ASCII (aka Basic Latin), then
[mailto:[EMAIL PROTECTED]
Sent: viernes, 12 de septiembre de 2008 16:58
To: Tomcat Users List
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
Konstantin Kolinko wrote:
2008/9/12 André Warnier [EMAIL PROTECTED]
Konstantin Kolinko wrote:
2008/9/12 André Warnier [EMAIL
From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
- the servlet reads those documents with some InputStream,
without specifying a character set or encoding, and by
default that means to use Tomcat's idea of its default
From: Caldarale, Charles R
Subject: RE: Migrating to tomcat 6 gives formatted currency
amounts problem
Consequently, setting LC_CTYPE (or equivalent) prior to
starting up Tomcat can have a dramatic effect on the
interpretation of both input and output, as you have discovered.
Also
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
If this locale stuff is in fact defaulting to an ISO char set
that can do these symbols...
There's the basic problem - anytime you allow defaults to come into play you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Johnny,
Johnny Kewl wrote:
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?
It is up to your browser
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
Caldarale, Charles R wrote:
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re:
Migrating to tomcat 6 gives formatted currency amounts problem
if I do look at that test page in a MS tool... it displays
correctly with mixed encodings
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
(My understanding is that Unicode (16-bit) is actually not
big enough for everything, but hey, they tried).
Point of clarification: Unicode is NOT limited to 16
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
André Warnier wrote:
The pages served by that webapp are the same html pages, all of them
having a declaration meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1.
Note that using META tags to set character sets is a bit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
André Warnier wrote:
It is on the way through that servlet that they get corrupted, unless
I start Tomcat with LC_CTYPE=iso-8859-1.
What do the HTTP headers say when the file is served correctly versus
when it is not? I suspect that the
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
Does it mean you cant run linux headless?...
Of course you can (think about blade servers).
Now you're confusing graphical display with encoding. The term headless
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
Caldarale, Charles R wrote:
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts
problem
(My understanding is that Unicode (16-bit) is actually not big
enough
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Johnny,
Johnny Kewl wrote:
Use this function
System.out.print(CharSet : + Charset.defaultCharset().toString());
and thats what you HAVE TO set your page at
On my system it tells me its. windows-1252
I think you're still
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
the 'char' data type is /defined/ to be 16-bits wide
(http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.1).
Has this changed? When
Christopher Schultz wrote:
[...]
Yes, they do. MS, contrary to W3 specifications, sniffs the content of a
page and chooses the encoding and ignores any server-specified encoding.
It also does this with MIME types. (Sorry, can't find the reference
right now).
[...]
Here is a start,
Nope - most editors do not let you choose the character encoding, they just
use the platform default. Some do let you choose a UTF-x flavor in lieu of
the platform default, which is quite desirable. Some fonts (e.g.,
Wingdings) redefine the glyphs for given code points in order to display
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Johnny,
Johnny Kewl wrote:
Servlet Response does in fact have a setLocale(Locale loc) function...
Which seems to indicate that if headers or something like
response.setContentType(text/html;charset=UTF-8);
is *not* used... TC will take on the
On Fri, Sep 12, 2008 at 9:26 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
Wonder if Wil knew he asked such a damn big question... ha ha
I'm really amazed at the volume of mails my question has raised.
I can only see one solution to this complexity: let's all (everybody in the
whole world) speak
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
Caldarale, Charles R wrote:
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts
problem
the 'char' data type is /defined/ to be 16-bits wide
(http://java.sun.com/docs
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Willem,
Willem Moors wrote:
I can only see one solution to this complexity: let's all (everybody in the
whole world) speak the same language, use the same currency and move into
one and the same timezone (the latter because of past fun with
Caldarale, Charles R wrote:
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
(My understanding is that Unicode (16-bit) is actually not
big enough for everything, but hey, they tried).
Point of clarification
: Migrating to tomcat 6 gives formatted currency
amounts problem
(My understanding is that Unicode (16-bit) is actually not
big enough for everything, but hey, they tried).
Point of clarification: Unicode is NOT limited to 16 bits (not even in
Java, these days). There are defined code points
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Willem,
Willem Moors wrote:
I can only see one solution to this complexity: let's all (everybody in the
whole world) speak the same language, use the same currency and move into
one and the same timezone (the latter
Just for the sake of completeness :
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
André Warnier wrote:
It is on the way through that servlet that they get corrupted, unless
I start Tomcat with LC_CTYPE=iso-8859-1.
What do the HTTP headers say when the file
- Original Message -
From: André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 12, 2008 10:56 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
Just for the sake of completeness :
Christopher Schultz
From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
The servlet thus reads the iso-8859-1 data, but with the
wrong decoder. I guess then that this decoder replaces
anything that does not fit into that default encoding
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
so, Java is still 16-bit Unicode in its char primitive,
but you can use ints to hold UTF-16 values using 21-bits?
The 21-bit values are represented by pairs
On Wed, Sep 10, 2008 at 7:55 PM, Steve Ochani [EMAIL PROTECTED] wrote:
Hmm odd.
I tried it on my Redhat test server and worked fine also.
Is your tomcat 6 install a default/fresh install?
What browser are you using? What character encoding does it think the
HelloWorldExample
output is
- Original Message -
From: Willem Moors [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 8:15 AM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
On Wed, Sep 10, 2008 at 7:55 PM, Steve Ochani [EMAIL
2008/9/11 Willem Moors [EMAIL PROTECTED]:
On Wed, Sep 10, 2008 at 7:55 PM, Steve Ochani [EMAIL PROTECTED] wrote:
Hmm odd.
I tried it on my Redhat test server and worked fine also.
Is your tomcat 6 install a default/fresh install?
What browser are you using? What character encoding does it
You are almost certainly having a problem with (default) character
encodings on your system, usual things to check are the encoding that
the JVM is using, for example what does:
echo $LANG
return (usually controlled by what's defined in /etc/sysconfig/i18n -
although I'm not familiar with Ubuntu
Will if possible use
pound
instead... that I think its font independent...
Otherwise I think you have to sorround that
getCurrencyInstance
stuff with a font... and tell it what font it must use...
... I think
I'm just wondering how the systems guess the character set from
1. What the _Browser_ thinks about encoding of your page.
In menu View Encoding what encoding is auto-selected there.
Western / ISO 8859-1 for both.
2. In Page Info dialog of Firefox
(in Tools menu or in context menu Page Info )
what is Encoding, Content Type, and what META tags are
On Thu, Sep 11, 2008 at 11:35 AM, Mark Hagger [EMAIL PROTECTED]wrote:
You are almost certainly having a problem with (default) character
encodings on your system, usual things to check are the encoding that
the JVM is using, for example what does:
echo $LANG
return (usually controlled by
- Original Message -
From: Willem Moors [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 12:36 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
On Thu, Sep 11, 2008 at 11:35 AM, Mark Hagger
[EMAIL
On Thu, Sep 11, 2008 at 1:42 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
Will, I cant see how TC can be influencing it
You write a char (the pound) to an output stream it appears differently in
browser...
TC is just sendign what it gets...
Its got to be this...
On Wed, Sep 10, 2008 at 10:27 AM, Willem Moors [EMAIL PROTECTED] wrote:
I'm transferring my application from a tomcat 5.5.26 server to tomcat
6.0.18, and notice that my formatted currency amounts are not being properly
displayed. Instead of a Pound (GBP) sign I get a question mark within a
- Original Message -
From: Willem Moors [EMAIL PROTECTED]
I think... you looking in the wrong place...
Convert it to bytes... and print that... you will see it... I think
Can it be one of the libraries (*.jar) that is different, that forcec TC6
to
act differently ?
---
- Original Message -
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 4:28 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
- Original Message -
From: Willem Moors [EMAIL
I studied the Response Headers for the ajax call that generates the output
and found that for the correct result (ie. in TC55), the content type was
this:
Content-Typetext/plain;charset=ISO-8859-1
while for the wrong result (ie. in TC6), the content type was:
Content-Typetext/plain
So I
2008/9/11 Willem Moors [EMAIL PROTECTED]:
I studied the Response Headers for the ajax call that generates the output
and found that for the correct result (ie. in TC55), the content type was
this:
Content-Typetext/plain;charset=ISO-8859-1
while for the wrong result (ie. in TC6), the
- Original Message -
From: Willem Moors [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 5:06 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
I studied the Response Headers for the ajax call
- Original Message -
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 6:18 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
- Original Message -
From: Willem Moors [EMAIL
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Johnny,
Johnny Kewl wrote:
I think it may be possible that something else is setting the font...
and then the JRE is using that.
I think you're totally confusing yourself about font issues. Java only
interacts with fonts of any kind when running
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Willem,
Willem Moors wrote:
I studied the Response Headers for the ajax call that generates the output
and found that for the correct result (ie. in TC55), the content type was
this:
Content-Typetext/plain;charset=ISO-8859-1
while for the
- Original Message -
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 6:42 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Johnny
On Thu, Sep 11, 2008 at 11:16 AM, Johnny Kewl [EMAIL PROTECTED] wrote:
Its generating a pound... the question is, the webapp is not dicatation the
font... so I'm asking what font is being used for the pound?
Whatever the browser picks from what it has available. :-)
He *is* introducing a
PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 6:42 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts
problem
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Johnny,
Johnny Kewl wrote:
I think it may be possible that something
- Original Message -
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 8:58 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
On Thu, Sep 11, 2008 at 11:16 AM, Johnny Kewl [EMAIL
On Thu, Sep 11, 2008 at 12:54 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
Now you designing a web page... you pick Arial...
have to discover the font (some how) and then you have to add that HTML to
CSS code to your page
Do you not understand that style information, including fonts, is just
- Original Message -
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 11:07 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
On Thu, Sep 11, 2008 at 12:54 PM, Johnny Kewl [EMAIL
On Thu, Sep 11, 2008 at 2:41 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
http://www.kewlstuff.co.za/test/test.htm
What do you see in this test page?
problems :-)
- Original Message -
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 11:41 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
- Original Message -
From: Hassan Schroeder [EMAIL
On Thu, Sep 11, 2008 at 2:53 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
Hassan I not arguing, you know nothing about that font... how is your client
going to display it?
If the page contains an invalid code-point, as the error message
points out, then what should a browser display??
--
Hassan
Johnny Kewl wrote:
http://www.kewlstuff.co.za/test/test.htm
What do you see in this test page?
The output of a server that lies right to my face.
It says, it is serving UTF-8-encoded text, while it really serves text
encoded with some 8-bit charset - probably ISO-8859-1.
Regards
mks
- Original Message -
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 11, 2008 11:59 PM
Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem
On Thu, Sep 11, 2008 at 2:53 PM, Johnny Kewl [EMAIL
On Thu, Sep 11, 2008 at 3:20 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
If the page contains an invalid code-point, as the error message
points out, then what should a browser display??
Thats probably what I'm not getting...
All I did was set the Font to Verdana and drop a registered mark
http://validator.w3.org
Very cool btw... didnt know it was there
---
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 :
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
From: David Smith [mailto:[EMAIL PROTECTED]
Subject: Re: Migrating to tomcat 6 gives formatted currency
amounts problem
I'm willing to bet the symbol for the british pound is not part of the
normal web character set like a US dollar symbol is and as a result
needs to be expressed by entity
Send reply to: Tomcat Users List users@tomcat.apache.org
Date sent: Wed, 10 Sep 2008 17:27:51 +0200
From: Willem Moors [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject:Migrating to tomcat 6 gives formatted currency amounts problem
I'm transferring my application from a
Works fine for me, fresh install of 6.0.18, changed the
HelloWorldExample.java and
recompiled.
Tried with both IE7 and FF 3.
Are you sure you don't have a httpd in front of tomcat?
I've seen simillar problem when using apache httpd.
I had to turn off the option
AddDefaultCharset
Send reply to: Tomcat Users List users@tomcat.apache.org
Date sent: Wed, 10 Sep 2008 18:58:48 +0200
From: Willem Moors [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Subject:Re: Migrating to tomcat 6 gives formatted currency amounts
problem
Works fine
74 matches
Mail list logo