• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Display non-US currency symbols

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can type � (GBP) and it displays � on my screen. But the following code displays 'u' with an acute (one character). Why ? ($ USD is OK).
NumberFormat ukCF = NumberFormat.getCurrencyInstance(Locale.UK) ;
s = ukCF.format(123.45) ;
System.out.println (s) ;

My keyboard does not have a Euro symbol. How would I display it ?
A website to read will do.

Thank you.
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have had the same problem, getting u-acute, and I think it has to do with the capabilities or otherwise of the Windows/DOS command prompt window. It prints � correctly on a Linux terminal or a Swing component.
For � don't know. Well, maybe altgr-4.
[Altgr is short for alternative graph.]
 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I asked this question I felt that the full answer would be really complicated. I was not wrong. Check this http://www.dragoman.org/euro/.
 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, it was complicated. I suspect that page may be out of date; it is dated nearly 10 years ago. Did you have any luck with altgr-4?
 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may also use Ctrl + Alt + E in your favorite text processor and then just paste it in your IDE.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic