• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Get currency symbol of different countries based on html Numerical codes(like &#8360 48,720)

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I have small problem request for your help,there are html currency codes in our application which are showing proper currency symbols in jsp using $(this).html(pa) here pa is ₨ 48,720 where ₨ is rupee symbol ). I want this code to be converted into currency symbol in java side which is not happening,Any one please help .

Request you to please provide any java code/api which converts html numerical codes to currency symbols without knowing the locale .
 
Sheriff
Posts: 28372
99
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In what format will this Java code receive that code? As the 6-character string "&8360;"? As the integer 8360? Some other way?

Edit: Since you're asking about Java code to do a conversion, that really isn't anything to do with JSP. Let's move this to Java in General.
 
Greenhorn
Posts: 4
Mac Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To print currency symbols, use unicode character as follows:



Just search for the appropriate unicode character and use it this way.
 
Marshal
Posts: 80295
434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Or are you passing that as straightforward text?
 
praneeth gajji
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Thanks for reply,

I am able to get currency codes like INR ,USD ,I am converting them to currency symbols using this locale information (as currency.getSymbol(locale)) and getting symbol .

But I am rendering this into pdf which is not rendering when converted to pdf ,I am using lowagie for converting into pdf.

Please help.

Please let me know if additional information is required.
 
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic