1

I'm using the prettyPhoto plugin and everything is OK except for two issues:

The box displays a weird character in the top and the title even when I set the option to hide it. This is my relevant code:

HTML:

  <a id="linkGraph" rel="prettyPhoto[iframes]" href="graph.php?iframe=true" title="Gráfica">Iframe</a>
  <a id="linkGraph" rel="prettyPhoto[iframes]" href="graph.php?iframe=true" title="Gráfica">Iframe</a>
  <a id="linkGraph" rel="prettyPhoto[iframes]" href="graph.php?iframe=true" title="Gráfica">Iframe</a>

Javascript:

$("a[rel^='prettyPhoto']").prettyPhoto({
    animation_speed: 'slow',
      social_tools: false,
      theme: 'facebook', /* pp_default / light_rounded / dark_rounded / light_square / dark_square / facebook */
      show_title: false
    });

But the result is:

Result's code

Why appear the items that I marked in red circles? Thanks in advance.

4

1 回答 1

0

尝试使用这个:

http://forum.jquery.com/topic/getting-strange-characters-using-ajax


更改标题类型。为了让 PHP 提供 UTF-8,

header('Content-Type: text/html; charset=utf-8');

于 2013-02-19T07:04:17.430 回答