Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Beginning Java
currency symbol
sumit sharmast
Greenhorn
Posts: 15
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Dear All,
When I run the below code, it is showing the currency symbol € with amount. But when I am calling this code in
jsp
it is not showing the currency symbol. Instead of currency symbol, it is showing ? symbol after the price
import java.text.*; import java.util.*; public class abc { public static void main(String[] args) { Locale defaultLocale = new Locale("de", "DE", "EURO"); NumberFormat nf = NumberFormat.getCurrencyInstance(defaultLocale); String formattedValue = nf.format(10); System.out.println(formattedValue); }}
Matthew Brown
Bartender
Posts: 4568
9
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Duplicate of
https://coderanch.com/t/589371/JSP/java/currency-symbol
Can you avoid posting the same post to more than one forum? Thanks.
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Currency symbol in jsp
Santis Self Tester
Question related to java.util.Currency's getSymbol method.
Number format
More...