Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Euro symbol not getting displayed in the browser

melinam63825268
Level 1
Level 1

I hope someone can help me here .

here is my code where am trying to display the Euro symbol from the jssp page 

 document.write(' € 20,00');

 

and response is coming with '?'

melinam63825268_0-1606136152451.png

 

3 Replies
Darren_Bowers
Community Advisor
Community Advisor

Hi @melinam63825268 - you can try encoding the output using € or one of the other HTML codes.

https://www.rapidtables.com/web/html/html-codes/html-code-euro.html

Cheers

Darren

melinam63825268
Level 1
Level 1

hi @Darren_Bowers - my output in the browser is a json like below . And all the euro signs are  getting replaced with '?' in the browser . as its a json am unable to use HTML endode code for the euro sign .

melinam63825268_0-1606194364604.png

 

Darren_Bowers
Community Advisor
Community Advisor
You can try using mutibyte unicode escaping in your JSON output e.g. "fare": " price at \u20ac 20,00 with discount \u20ac 34"