解决方案 »

  1.   

    html_entity_decode()可能更适合一点。
      

  2.   

    html_entity_decode.或者mb_convert_encoding();
      

  3.   

    $s =<<< TXT
    &#x0028;&#x52a0;&#x0029;&#x0020;&#x004c;&#x0065;&#x0065;&#x0020;&#x0042;&#x0061;&#x0062;&#x0069;&#x006e;&#x0020;&#x002e;&#x002e;&#x002e;&#x0020;&#x005b;&#x7b49;&#x005d;&#x0020;&#x8457; <br />
                    &#x4eba;&#x6c11;&#x90ae;&#x7535;&#x51fa;&#x7248;&#x793e;&nbsp;&#x0032;&#x0030;&#x0030;&#x0038;
    TXT;
    echo mb_convert_encoding($s , "utf-8", 'HTML-ENTITIES'); (加) Lee Babin ... [等] 著 <br />
                    人民邮电出版社 2008
      

  4.   

    要是字符本身的编码就是utf-8而且还夹杂了各种汉字和字符
       </div>
           </div>  
           </div>
                <div class="book_article">
                      <ol id="search_book_list">
                                                                     <li class="book_list_info">
                                            <h3><span>中文图书</span><a href="item.php?marc_no=0000307267" >1.&#x0050;&#x0048;&#x0050;&#x002b;&#x004d;&#x0079;&#x0053;&#x0051;&#x004c;&#x5168;&#x80fd;&#x6743;&#x5a01;&#x6307;&#x5357;</a>     &#x0054;&#x0050;&#x0033;&#x0031;&#x0032;&#x0050;&#x0048;&#x002f;&#x005a;&#x0032;&#x0032;&#x0031;  </h3>
                                            <p> <span>馆藏复本:3 <br>
                                              可借复本:3</span> &#x5f20;&#x4e9a;&#x98de;&#x002c;&#x0020;&#x9ad8;&#x7ea2;&#x971e;&#x7f16;&#x8457; <br />
                &#x6e05;&#x534e;&#x5927;&#x5b66;&#x51fa;&#x7248;&#x793e;&nbsp;&#x0032;&#x0030;&#x0031;&#x0032; <br />
    <img src="../tpl/images/star0.gif" title="总体评分及评价人数"/>(0) <a href="item.php?marc_no=0000307267" class="tooltip" onmouseover="showDetail('0000307267')" onmouseout="hideDetail('0000307267')">馆藏<s></s></a> </p>
                                    <div id="detail0000307267" style="display:none;" >加载中...</div>
       </li>
                                                                    <li class="book_list_info">
                                            <h3><span>中文图书</span><a href="item.php?marc_no=0000295081" >2.&#x0050;&#x0048;&#x0050;&#x4e0e;&#x004d;&#x0079;&#x0053;&#x0051;&#x004c;&#x52a8;&#x6001;&#x7f51;&#x7ad9;&#x5f00;&#x53d1;&#x003a;&#x0056;&#x0069;&#x0073;&#x0075;&#x0061;&#x006c;&#x0020;&#x0051;&#x0075;&#x0069;&#x0063;&#x006b;&#x0050;&#x0072;&#x006f;&#x0020;&#x0067;&#x0075;&#x0069;&#x0064;&#x0065;</a>     &#x0054;&#x0050;&#x0033;&#x0031;&#x0032;&#x0050;&#x0048;&#x002f;&#x0045;&#x0030;&#x0033;&#x0030;&#x002f;&#x0032;  </h3>
                                            <p> <span>馆藏复本:3 <br>
                                              可借复本:1</span> &#x0028;&#x7f8e;&#x0029;&#x0020;&#x004c;&#x0061;&#x0072;&#x0072;&#x0079;&#x0020;&#x0055;&#x006c;&#x006c;&#x006d;&#x0061;&#x006e;&#x8457; <br />
                &#x4eba;&#x6c11;&#x90ae;&#x7535;&#x51fa;&#x7248;&#x793e;&nbsp;&#x0032;&#x0030;&#x0031;&#x0033; <br />
    <img src="../tpl/images/star0.gif" title="总体评分及评价人数"/>(0) <a href="item.php?marc_no=0000295081" class="tooltip" onmouseover="showDetail('0000295081')" onmouseout="hideDetail('0000295081')">馆藏<s></s></a> </p>
                                    <div id="detail0000295081" style="display:none;" >加载中...</div>
       </li>这个函数还有用吗?
      

  5.   

    自己测试一下不就知道了。
    另外。mb_convert_encoding 的第二个参数表示转换后的编码,所以你的字符串中有utf-8又如何呢?