tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Moors" <willemsl...@gmail.com>
Subject Re: Migrating to tomcat 6 gives formatted currency amounts problem
Date Thu, 11 Sep 2008 13:17:49 GMT
On Thu, Sep 11, 2008 at 1:42 PM, Johnny Kewl <john@kewlstuff.co.za> 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...
>   NumberFormat.getCurrencyInstance(Locale.UK)
> and that is Java... so I conclude... TC 6 is not on the same JDK/JRE as TC
> 5
>
> You JAVA has changed... must be..

Sorry to have to disappoint you, but this server was installed just a few
days ago, and there is only ONE JDK on it:
 java version "1.6.0_07"
 Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
 Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

So it's impossible the TC5.5 uses a diffferent Java then TC6.



> That stuff that you like is LOCALE stuff... and that stuff can all be
> configured from outside Java...
>
> You are choosing a Locale... but if the font.property files in JRE/LIB
> are different... its probably picking a wide super new Sun font... which in
> swing will make no diffs... but
> where the old JRE was using the something a browser gets... the new
> GB_SUPER font with english flags and the national anthem... confuses current
> browsers.
>
> .... 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 ?



> Then just to confince yourself that TC is not doing a weird Arabic
> header... get the header plugin for FireFox... and have a look...
> I doubt they diffs...

That is a good track to follow ! Thanks for this advice.




> Have more fun...

Thanks!

Willem

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message