PHP編碼轉換方法 Nicholas Wong 24 Jun 2011 $url = "http://j-jis.com/"; $html = file_get_contents($url); $html = preg_replace("/rn|n|t/", "", $html); //remove unwanted characters $html = iconv("Shift_JIS","UTF-8",$html); //convert encoding echo $html; Unsorted Nicholas Wong Fullstack software engineer with strong background in computer science and extensive experience in software engineering and architecture. Studied in NYU, worked in Yahoo, Rakuten and Manulife. Nicholas Workshop Newsletter Join the newsletter to receive the latest updates in your inbox. Your email address Subscribe Please check your inbox and click the link to confirm your subscription. Please enter a valid email address! An error occurred, please try again later.