piaolankeke / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

Some Chinese characters can not be displayed #184

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
<?php
include("../includes/phpQuery.php");
$content="
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=big5' />
</head>
<body background=\"#fff\">
在絲瓜盛產的季節裏,讓孩子實際去親近鄉土。
</body>
</html>
";
$html =phpQuery::newDocumentHTML($content);
echo $html;
?>
=================================================
@output:在絲瓜盛產的季節
=>裏 No follow-up string
@version 0.9.5
@charset=big5

Original issue reported on code.google.com by may857...@chiya.com.tw on 31 May 2011 at 10:02

GoogleCodeExporter commented 8 years ago
Please add this code at phpquery.php 
$content=iconv('big5', 'big5//IGNORE', $content);
To ignore the special characters, and not cut off the contents of the follow-up

Original comment by may857...@chiya.com.tw on 1 Jun 2011 at 6:08