Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Keyboard UK and autoexec

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Maureen Charlton
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Many thanks for your reply.

So how or where does Windows 2000 get the keyboard settings from?
 
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic