Chris Meek
Chris Meek

Reputation: 5839

Chrome JavaScript Errors on Non-Breaking Space

We have a thrid-party javascript component that instead of ordinary spaces has non-breaking ones, i.e. when looked at in the editor we get c2a0 as the character for the space.

This script when loaded into a browser seems to work mostly fine, but on Chrome in Ubuntu this character becomes a capital A with a circumflex atop of it; this of course causes errors. Now we have removed all the offending characters but would still like to lnow why this might have happened?

Upvotes: 0

Views: 139

Answers (1)

Chris Meek
Chris Meek

Reputation: 5839

The answer is that I hadn't correctly specified the character encoding on my html page. With a correct encoding of "utf-8" set up, everything works as expected.

Upvotes: 1

Related Questions