File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Display non-US currency symbols Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Display non-US currency symbols" Watch "Display non-US currency symbols" New topic
Author

Display non-US currency symbols

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
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.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38793
    
  23
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

Joined: Apr 16, 2004
Posts: 127
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
Sheriff

Joined: Oct 13, 2005
Posts: 38793
    
  23
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?
Nikos Pougounias
Ranch Hand

Joined: Jan 16, 2008
Posts: 110
You may also use Ctrl + Alt + E in your favorite text processor and then just paste it in your IDE.


Nikos' Java blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display non-US currency symbols