Why are these wierd characters being inserted in Facebook iframe when using jQuery? ​ [closed]

StackOverflow https://stackoverflow.com/questions/12610513

سؤال

jQuery parses some html in my iframe app on Facebook, and when it does, I get tons of these characters:

​ ​​​​​​​​​​​​​

Please see screenshot for more info. Does anyone know why this occurring! and how to fix it?

screenshot showing problem - note how it is randomly inserted into inline css too

هل كانت مفيدة؟

المحلول

It's an encoding issue, probably. You'll probably want to define the charset. Like this:

<meta charset="UTF-8">
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top