Ben domdocuments kullanarak ve bir web sayfasından belirli bilgileri elde etmek için $ div-> nodeValue gibi şeyler kullanıyorum.
On my ubuntu machine when i do php crawl.php everything is displayed properly in Chinese (the page is in UTF-8).
However on my CENTOS machine using the same code I get æ´å¤åå¸ when I print in the terminal. and when I save it to the database, the characters are also messed up.
Ben fark bir şey print $ içeriği yaptığınızda, her iki sistem de düzgün onlara göstermek olduğunu.