親測可用,修改 wordpress 目錄底下 \wp-includes\class-wp.php
1.
找到 $pathinfo = isset( $_SERVER[‘PATH_INFO’] ) ? $_SERVER[‘PATH_INFO’] : ”;
改成
$pathinfo = isset( $_SERVER[‘PATH_INFO’] ) ? mb_convert_encoding( $_SERVER[‘PATH_INFO’], ‘UTF-8’, ‘Big5’) : ”;
2.
找到 list( $req_uri ) = explode( ‘?’, $_SERVER[‘REQUEST_URI’] );
改成下列兩行:
$req_uri = urldecode($req_uri);
list( $req_uri ) = explode( ‘?’, mb_convert_encoding( $_SERVER[‘REQUEST_URI’], ‘UTF-8’, ‘Big5’ ) );