File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Keyboard UK and autoexec Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Keyboard UK and autoexec" Watch "Keyboard UK and autoexec" New topic

Keyboard UK and autoexec

Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
I am having the following problem:

I the following code:

This displays the following output to screen:

Account details for:
BigDecimal Amount changed to a String for display: 600
Unformated BigDecimal rounded up to two decimal places: = 600.00
Price with Pound Sign: � 600,00
Using NumberFormat.getCurrencyInstance: � 600,00
Steven Peter Charlton : Account No: 8945 Balance: 600.00

You will notice the line:
Price with Pound Sign is not displaying �600.00 as expected
and the line:
Using NumberFormat.getCurrencyInstance �600.00 as expected

in both lines the full stop is a comma the where I should have a pound sign � I get �.

The operating system I am using is Windows 2000.

I remember something about this from previous experiences (before Windows) ........ you would need to put a line in your autoexec.bat but I can't remember what it was i.e. was it device=c:\dos\ansi.sys? and also would I need to put something in my CONFIG.sys?

Thanking you in advance!
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Windows 2000 does not use autoexec.bat and I think it does not use config.sys either although I may be wrong on the second part.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
Many thanks for your reply.

So how or where does Windows 2000 get the keyboard settings from?
I agree. Here's the link:
subject: Keyboard UK and autoexec
jQuery in Action, 3rd edition