Reputation: 4562
I am working on a site which has some Norwegian words. When I used "På" inside a <span>
it is showing as "PÃ¥" in the browser.This is happening only for a particular page. For others it is working fine.I have tried to copy-paste from other working pages.But had no effect.It is showing "PÃ¥" instead of "På".Why this is happening?
Upvotes: 0
Views: 50
Reputation: 201548
The character encoding of the page is wrong: the real encoding differs from the declared encoding. Using entity references for all non-Ascii characters would hide the symptoms (with the pertaining risk that later on, when someone inserts an “å”, things go wrong again). But the solution is to remove the conflict.
Check out the tutorial Declaring character encodings in HTML. If you need further help with this, posting the URL (not just copy of all code) is essential.
Upvotes: 1
Reputation: 5736
Try converting your special characters to equivalent HTML entities using this converter
Upvotes: 2
Reputation: 8614
you need to use å
insead of å
see this link for html codes- http://www.ascii.cl/htmlcodes.htm
Upvotes: 2