为什么在使用jQuery时,这些wierd字符插入到Facebook iframe? â€< [英] Why are these wierd characters being inserted in Facebook iframe when using jQuery? &#226;€‹

查看:168
本文介绍了为什么在使用jQuery时,这些wierd字符插入到Facebook iframe? â€<的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery在我的iframe应用程序中解析一些html,如果有的话,我会收到以下这些字符:



â€<â€< â€<â€â€â€â€â€â€â€â€â€â€¬€¬€¬

请参阅截图更多信息。有谁知道为什么会发生!和如何解决?



截图显示问题 - 注意它如何随机插入到内联CSS中

解决方案

可能是一个编码问题。您可能需要定义 charset 。像这样:

 < meta charset =UTF-8> 


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">

这篇关于为什么在使用jQuery时,这些wierd字符插入到Facebook iframe? â€<的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆