{"id":24,"date":"2005-09-08T12:10:25","date_gmt":"2005-09-08T04:10:25","guid":{"rendered":"http:\/\/blog.urdada.net\/2005\/09\/08\/24\/"},"modified":"2007-09-13T13:06:07","modified_gmt":"2007-09-13T05:06:07","slug":"url-%e5%90%ab%e4%b8%ad%e6%96%87%e8%b7%af%e5%be%91%e5%90%8d%e7%a8%b1%e7%9a%84%e7%b5%82%e6%a5%b5%e8%a7%a3%e6%b3%95","status":"publish","type":"post","link":"https:\/\/dada.tw\/blog\/2005\/09\/08\/24\/","title":{"rendered":"URL \u542b\u4e2d\u6587\u8def\u5f91\u540d\u7a31\u7684\u7d42\u6975\u89e3\u6cd5"},"content":{"rendered":"<p><strong>URL \u542b\u4e2d\u6587\u8def\u5f91\u540d\u7a31\u7684\u7d42\u6975\u89e3\u6cd5<\/strong> &#8211; \u5229\u7528 mod_fileiri  \u89e3\u6c7a\u4e2d\u6587\u6a94\u540d\u554f\u984c<\/p>\n<p>\u7576\u7136\uff0c\u5c0d\u4ed8\u4e2d\u6587\u6a94\u540d\u554f\u984c\u7684\u6700\u597d\u7684\u89e3\u6c7a\u65b9\u6cd5\u5c31\u662f\u300c\u7d55\u5c0d\u4e0d\u8981\u7528\u4e2d\u6587\u6a94\u540d\u300d\uff0c\u7136\u800c\u5728\u8a31\u591a\u4e0d\u5f97\u5df2\u7684\u72c0\u6cc1\u4e0b\uff0c\u6211\u5011\u9084\u662f\u88ab\u8feb\u8981\u4f7f\u7528\u4e2d\u6587\u6a94\u540d\uff0c\u9019\u6642\u5019\u554f\u984c\u5c31\u4f86\u4e86&#8230;.<\/p>\n<p>\u5728  Web Server \u4e0a\u4f7f\u7528\u4e2d\u6587\u6a94\u540d\u6700\u5e38\u9047\u5230\u7684\u554f\u984c\u5c31\u662f\u6703\u767c\u751f\u7121\u6cd5\u5b58\u53d6\u7684\u932f\u8aa4<\/p>\n<p>\u767c\u751f\u9019\u7a2e\u72c0\u6cc1\u6700\u4e3b\u8981\u7684\u539f\u56e0\u5c31\u662f\u5728 URL  \u7684\u5b9a\u7fa9\u7576\u4e2d\uff0c\u4e26\u6c92\u6709\u4efb\u4f55\u95dc\u65bc\u5b57\u5143\u96c6(Charset)\u7684\u8cc7\u8a0a\u3002\u53ea\u6709\u8981\u6c42\u5c0d\u65bc URL \u4e2d\u7684\u975e ASCII \u7b26\u865f\uff0c\u8981\u7528\u767e\u5206\u6bd4\u7b26\u865f\u7684\u65b9\u5f0f\u53bb\u7de8\u78bc (\u4f8b\u5982: %A4  )<\/p>\n<p>\u8209\u500b\u4f8b\u5b50\u4f86\u8aaa\uff0c\u5c0d\u65bc\u4e0b\u9762\u9019\u500b\u542b\u4e2d\u6587\u6a94\u540d\u7684  URL<\/p>\n<p><strong>http:\/\/bbs.giga.net.tw\/fileiri\/\u4e2d\u6587.html<\/strong><\/p>\n<p>\u7531\u65bc\u300c\u4e2d\u6587\u300d\u5169\u500b\u5b57\u4e26\u975e\u5408\u6cd5\u7684  ASCII \u5b57\u5143\uff0c\u56e0\u6b64\u7576\u4f60\u5728\u700f\u89bd\u5668\u7684\u7db2\u5740\u5217\u8f38\u5165\u4e0a\u9762\u9019\u4e32 URL \u6642\uff0c\u700f\u89bd\u5668\u6703\u628a\u975e ASCII \u5b57\u5143\u90e8\u5206\u8f49\u63db\u6210 %HH \u7684\u5f62\u5f0f\u8f38\u51fa<br \/>\n(\u95dc\u65bc URL  \u7684\u7de8\u78bc\u65b9\u5f0f\uff0c\u53ef\u53c3\u95b1 <a href=\"http:\/\/www.w3.org\/TR\/html4\/appendix\/notes.html#h-B.2\">Non-ASCII characters  in URI attribute values<\/a> \u4e00\u6587\u7684\u8aaa\u660e)<\/p>\n<p>\u4f46\u662f\uff0cURL \u4e2d\u7684\u4e2d\u6587\u5b57\u5230\u5e95\u8981\u7528 BIG5 \u9084\u662f\u7528 UTF-8  \u5b57\u5143\u96c6\u4f86\u8868\u793a\u4e26\u7de8\u78bc\u5462\uff1f<\/p>\n<p>\u5728\u5fae\u8edf\u7684 IE \u88e1\u9762\uff0c<strong>\u5de5\u5177\u2192\u7db2\u969b\u7db2\u8def\u9078\u9805\u2192\u9032\u968e<\/strong> \u6709\u500b\u9078\u9805\u300c<font color=\"blue\">\u6c38\u9060\u5c07 URL  \u50b3\u9001\u6210 UTF-8<\/font>\u300d<br \/>\n\u5982\u679c\u662f\u82f1\u6587\u7248\u5247\u662f\u300c<font color=\"blue\">Always send URLs as  UTF-8<\/font>\u300d<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/photo.giga.net.tw\/photo\/2029\/original\/20050907211149-0001.jpg?w=625\" \/><\/p>\n<p>\u9019\u500b\u9078\u9805\u6253\u52fe\u7684\u6642\u5019\uff08\u9019\u4e5f\u662f\u5927\u90e8\u5206\u96fb\u8166\u5167\u5b9a\u7684\u72c0\u6cc1\uff09\uff0cURL  \u4e2d\u7684\u4e2d\u6587\u5b57\u6703\u88ab\u7576\u6210 Unicode\uff0c\u4e26\u7528 UTF-8 \u7de8\u78bc\u65b9\u5f0f\u9001\u51fa\uff0c\u56e0\u6b64 URL  \u6703\u88ab\u700f\u89bd\u5668\u5077\u5077\u8f49\u6210\uff1a<\/p>\n<p><strong>http:\/\/bbs.giga.net.tw\/fileiri\/%E4%B8%AD%E6%96%87.html<\/strong><\/p>\n<p>\u4e5f\u5c31\u662f\u8aaa\uff0c\u300c\u4e2d\u6587\u300d\u9019\u5169\u500b\u5b57\u6703\u88ab\u700f\u89bd\u5668\u7528  UTF-8 \u7de8\u78bc\u6210\u300c<font color=\"blue\">%E4%B8%AD%E6%96%87<\/font>\u300d\u7684\u578b\u5f0f\u5f8c\uff0c\u518d\u628a\u9019\u500b\u7de8\u78bc\u904e\u7684 URL  \u9001\u53bb\u7d66\u4f3a\u670d\u5668<\/p>\n<p>\u5927\u90e8\u5206\u7684\u4e2d\u6587\u5b57\u7528 UTF-8 \u7de8\u78bc\u6703\u8b8a\u6210 3 \u500b bytes\uff0c\u6240\u4ee5\u300c\u4e2d\u6587\u300d\u5169\u5b57\u5c31\u8b8a\u6210\u4e0a\u9762\u9019 6 \u500b bytes  \u7684\u7de8\u78bc\u300c<font color=\"blue\">%E4%B8%AD%E6%96%87<\/font>\u300d<\/p>\n<p>\u4f46\u5982\u679c\u524d\u8ff0\u7684\u300c<font color=\"blue\">\u6c38\u9060\u5c07 URL \u50b3\u9001\u6210 UTF-8<\/font>\u300d\u9078\u9805\u662f<u>\u6c92\u6709\u6253\u52fe<\/u>\u7684\uff0c\u90a3\u60c5\u6cc1\u5c31\u4e0d\u4e00\u6a23\u4e86\uff0c<br \/>\n\u9019\u6642\u5019 URL \u4e2d\u7684\u4e2d\u6587\u5b57\u6703\u4ee5  BIG5 \u7684\u5f62\u5f0f\u7de8\u78bc\u9001\u51fa\uff0cURL  \u5c31\u6703\u8b8a\u6210\u9019\u6a23\uff1a<\/p>\n<p><strong>http:\/\/bbs.giga.net.tw\/fileiri\/%A4%A4%A4%A5.html<\/strong><\/p>\n<p>\u6bcf\u500b\u4e2d\u6587\u5b57\u7528  BIG5 \u7de8\u78bc\u6703\u8b8a\u6210 2 \u500b bytes\uff0c\u6240\u4ee5\u300c\u4e2d\u6587\u300d\u9019\u5169\u500b\u5b57\u5c31\u8b8a\u6210\u4e0a\u9762\u9019 4 \u500b bytes \u7684\u7de8\u78bc\u300c<font color=\"blue\">%A4%A4%A4%A5<\/font>\u300d<\/p>\n<p>\u9019\u662f\u5728\u7528\u6236\u7aef\u700f\u89bd\u5668\u7684\u4e82\u8c61\uff0c\u4e0d\u540c\u7684\u700f\u89bd\u5668\u6216\u751a\u81f3\u53ea\u662f\u4e0d\u540c\u7684\u8a2d\u5b9a\uff0c\u5c0d\u540c\u6a23\u4e2d\u6587\u6a94\u540d\u6240\u9001\u51fa\u7684  URL \u7de8\u78bc\u683c\u5f0f\u90fd\u53ef\u80fd\u6703\u4e0d\u4e00\u6a23<\/p>\n<p>\u90a3\u4f3a\u670d\u5668\u6536\u5230\u9019\u4e32 URL \u8981\u600e\u9ebc\u8655\u7406\u5462\uff1f<\/p>\n<p>\u5982\u540c\u524d\u9762\u6240\u8ff0\uff0cURL  \u7db2\u5740\u672c\u8eab\u4e26\u4e0d\u542b\u5b57\u5143\u96c6(Charset)\u7684\u8cc7\u8a0a\uff0c\u56e0\u6b64\u4f3a\u670d\u5668\u7576\u7136\u4e5f\u7121\u6cd5\u77e5\u9053\u7528\u6236\u7aef\u700f\u89bd\u5668\u63a1\u7528\u90a3\u500b\u5b57\u5143\u96c6\u4f86\u5c0d URL  \u4e2d\u7684\u4e2d\u6587\u6a94\u540d\u89e3\u91cb\u3001\u7de8\u78bc<\/p>\n<p>\u6240\u4ee5\u4f3a\u670d\u5668\u7684\u6a19\u6e96\u52d5\u4f5c\u5c31\u8b8a\u6210\u300c\u6536\u5230\u4ec0\u9ebc\u6a94\u540d\u5c31\u53bb\u8b80\u4ec0\u9ebc\u6a94\u6848\u300d<\/p>\n<p>\u6536\u5230 UTF-8 \u7de8\u78bc\u7684 URL\uff0c\u5c31\u7528\u9019\u500b  UTF-8 \u7684\u6a94\u6848\u540d\u7a31\u53bb File System \u627e\u6a94\u6848\uff0c\u6536\u5230 BIG5 \u7de8\u78bc\u7684 URL\uff0c\u5c31\u7528\u9019\u500b BIG5 \u7684\u6a94\u6848\u540d\u7a31\u53bb File System  \u627e\u6a94\u6848<\/p>\n<p>\u6240\u4ee5\u5982\u679c\u6a94\u6848\u7cfb\u7d71\u4e2d\u7684\u6a94\u540d\u662f\u63a1\u7528 UTF-8 \u7de8\u78bc\uff0c\u90a3\u7528 BIG5 \u7de8\u78bc\u7684 URL  \u53bb\u627e\u6a94\u6848\u5c31\u6703\u627e\u4e0d\u5230&#8230; \u76f8\u53cd\u7684\uff0c\u5982\u679c\u6a94\u6848\u7cfb\u7d71\u4e2d\u7684\u6a94\u540d\u662f\u63a1\u7528 BIG5 \u7de8\u78bc\uff0c\u90a3\u9ebc\u7528 UTF-8 \u7de8\u78bc\u7684 URL \u4e5f\u6703\u627e\u4e0d\u5230\u6a94\u6848\uff01<\/p>\n<p>\u5c24\u5176\u5728  Apache\/UNIX \u7684\u74b0\u5883\u4e0b\uff0c\u5f9e Windows \u7528 FTP \u628a\u6a94\u6848\u4e0a\u50b3\u6642\uff0c\u4e2d\u6587\u6a94\u6848\u540d\u7a31\u5927\u591a\u6703\u4f7f\u7528 BIG5  \u7684\u6a94\u540d\u683c\u5f0f\u4e0a\u50b3\u5132\u5b58<\/p>\n<p>\u6240\u4ee5\u5927\u591a\u6578\u9019\u985e\u7684\u7cfb\u7d71\u90fd\u6703\u8981\u6c42\u7528\u6236\u4e0d\u8981\u5728\u4e0a\u8ff0\u300c<font color=\"blue\">\u6c38\u9060\u5c07 URL \u50b3\u9001\u6210  UTF-8<\/font>\u300d\u9019\u500b\u9078\u9805\u6253\u52fe\uff0c\u9019\u6a23\u5b58\u53d6 BIG5  \u7684\u4e2d\u6587\u6a94\u540d\u5c31\u4e0d\u6703\u6709\u554f\u984c\u4e86<\/p>\n<p>\u4e0d\u904e\uff0c\u9019\u7a2e\u65b9\u5f0f\u4e0d\u662f\u5f88\u53cb\u5584\uff0c\u5c0d\u65bc\u5927\u591a\u6578\u7684\u7db2\u53cb\u800c\u8a00\uff0c\u8981\u53bb\u6539\u700f\u89bd\u5668\u8a2d\u5b9a\u662f\u5f88\u4e0d\u65b9\u4fbf\u7684\uff01<\/p>\n<p>\u90a3\u6709\u6c92\u6709\u8fa6\u6cd5\u8b93\u700f\u89bd\u5668\u4e0d\u7528\u66f4\u6539\u8a2d\u5b9a\u5c31\u53ef\u4ee5\u5b8c\u7f8e\u89e3\u6c7a\u5462\uff1f<\/p>\n<p>\u5176\u5be6\u662f\u6709\u7684\uff0c\u90a3\u5c31\u662f\u9019\u7bc7\u6587\u7ae0\u8981\u4ecb\u7d39\u7684  <strong>mod_fileiri<\/strong> \u9019\u500b Apache module<\/p>\n<p><strong>mod_fileiri<\/strong>  \u7684\u6700\u4e3b\u8981\u529f\u7528\u5c31\u662f\u8b93\u4f3a\u670d\u5668\u53ef\u4ee5\u60f3\u8fa6\u6cd5\u53bb\u5224\u65b7 URL \u7684\u7de8\u78bc\uff0c\u7136\u5f8c\u5e6b\u5fd9\u505a\u8f49\u78bc\u3001\u8f49\u5740\u7684\u52d5\u4f5c\uff0c\u8b93\u4f3a\u670d\u5668\u53ef\u4ee5\u540c\u6642\u8655\u7406 UTF-8 \u53ca\u5176\u4ed6\u5b57\u5143\u96c6\u7684 URL  \u7de8\u78bc<\/p>\n<p>\u4ee5\u4e0b\u662f\u5728 FreeBSD \u4e0b\u5b89\u88dd\u53ca\u8a2d\u5b9a <strong>mod_fileiri<\/strong> \u7684\u65b9\u6cd5\uff1a<\/p>\n<p>\u9996\u5148\u662f\u5f9e CVS \u4e2d\u53d6\u5f97\u9019\u500b  module\uff1a<\/p>\n<pre># fetch http:\/\/dev.w3.org\/cvsweb\/~checkout~\/apache-modules\/mod_fileiri\/mod_fileiri.c<\/pre>\n<p>\u7136\u5f8c\u7528 apxs \u4f86\u7de8\u8b6f\u53ca\u5b89\u88dd\u9019\u500b module&#8230; (\u8acb\u7528 root \u8eab\u4efd\u57f7\u884c)<\/p>\n<pre><strong># \/usr\/local\/sbin\/apxs -i -a -c mod_fileiri.c<\/strong>\r\n\/usr\/local\/share\/apache2\/build\/libtool .....\r\n\/usr\/local\/share\/apache2\/build\/libtool .....\r\n\/usr\/local\/share\/apache2\/build\/libtool .....\r\n<strong>cp .libs\/mod_fileiri.so \/usr\/local\/libexec\/apache2\/mod_fileiri.so<\/strong>\r\n----------------------------------------------------------------------\r\nLibraries have been installed in:\r\n   \/usr\/local\/libexec\/apache2\r\n\r\nIf you ever happen to want to link against installed libraries\r\nin a given directory, LIBDIR, you must either use libtool, and\r\nspecify the full pathname of the library, or use the `-LLIBDIR'\r\nflag during linking and do at least one of the following:\r\n   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable\r\n     during execution\r\n   - add LIBDIR to the `LD_RUN_PATH' environment variable\r\n     during linking\r\n   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag\r\n\r\nSee any operating system documentation about shared libraries for\r\nmore information, such as the ld(1) and ld.so(8) manual pages.\r\n----------------------------------------------------------------------\r\ngrep: \/usr\/local\/libexec\/apache2\/mod_fileiri.la: No such file or directory\r\ngrep: \/usr\/local\/libexec\/apache2\/mod_fileiri.la: No such file or directory\r\nWarning!  dlname not found in \/usr\/local\/libexec\/apache2\/mod_fileiri.la.\r\nAssuming installing a .so rather than a libtool archive.\r\nchmod 755 \/usr\/local\/libexec\/apache2\/mod_fileiri.so\r\n<strong>[activating module `fileiri' in \/usr\/local\/etc\/apache2\/httpd.conf]<\/strong><\/pre>\n<p>apxs \u4e0d\u4f46\u6703\u7522\u751f mod_fileiri.so \u4e26\u628a\u5b83\u8907\u88fd\u5230 \/usr\/local\/libexec\/apache2\/  \u4e0b\u9762\uff0c<br \/>\n\u751a\u81f3\u9084\u6703\u5e6b\u4f60\u628a httpd.conf \u7684\u8a2d\u5b9a\u6539\u597d\u5594\uff01<\/p>\n<p>\u7136\u5f8c\u4f60\u53ea\u8981\u91cd\u65b0\u555f\u52d5 Apache \u5c31\u5b8c\u6210\u4e86\uff0c\u7c21\u55ae\u5427\uff01<\/p>\n<pre class=\"tiny\"># \/usr\/local\/etc\/rc.d\/apache2.sh restart<\/pre>\n<p>\u63a5\u4e0b\u4f86\u5c31\u8981\u958b\u59cb\u8a2d\u5b9a <strong>mod_fileiri<\/strong> \u7684\u5de5\u4f5c\u4e86&#8230;<\/p>\n<p><strong>mod_fileiri<\/strong> \u6709\u4e09\u500b  directives \u53ef\u7528\uff0c\u5206\u5225\u662f  <strong>FileIRI<\/strong>\u3001<strong>FilenameCharset<\/strong>\u3001<strong>OldFilenameCharset<\/strong>\uff0c\u4f4d\u7f6e\u53ef\u4ee5\u653e\u5728  Server Config \/ Directory \/ Virtual Host \u88e1\u9762\uff0c\u751a\u81f3 .htaccess  \u88e1\u9762\u4e5f\u53ef..<\/p>\n<p><strong>FileIRI<\/strong> \u6709\u56db\u500b\u9078\u9805\uff1a Off\u3001On\u3001Backwards\u3001Only<\/p>\n<p><strong>Off<\/strong>  \u5c31\u4e0d\u7528\u8aaa\u4e86\uff0c\u8a2d\u5b9a\u6210 <strong>Off<\/strong> \u7b49\u65bc\u662f\u6c92\u6709\u8a2d\u5b9a\u7684\u72c0\u6cc1<\/p>\n<p><strong>On<\/strong>  \u5247\u662f\u6307\u6a94\u6848\u7cfb\u7d71\u4e0a\u9762\u7684\u76ee\u9304\u6216\u6a94\u6848\u540d\u7a31\u4f7f\u7528\u7684\u662f\u6bd4\u8f03\u820a\u7684\u7de8\u78bc\u65b9\u5f0f(Legacy Encoding)\uff0c\u4f8b\u5982 BIG5\uff0c\u7136\u5f8c\u63d0\u4f9b\u6a94\u6848\u7d66\u6240\u6709\u63a1\u7528 UTF-8  \u7de8\u78bc\u904e\u7684 URL\uff0c\u540c\u6642\uff0c\u5982\u679c <strong>mod_fileiri<\/strong> \u767c\u73fe URL \u4e26\u4e0d\u662f\u63a1\u7528 UTF-8 \u7de8\u78bc\uff0c\u5c31\u6703\u5c0d\u8a72 URL \u505a\u4e00\u500b  HTTP\/1.0 301 Moved Permanently\uff0c\u628a\u5b83 redirect \u5230 UTF-8 \u578b\u5f0f\u7684  URL<\/p>\n<p>\u5982\u679c\u4ee5\u524d\u8ff0\u7684\u4f8b\u5b50\u4f86\u770b\uff0c\u8a2d\u5b9a\u61c9\u8a72\u662f\u9019\u6a23\u7684 (\u6211\u7fd2\u6163\u76f4\u63a5\u8a2d\u5728\u76ee\u9304\u7684 .htaccess \u4e0b\u9762)<\/p>\n<pre class=\"tiny\">&lt;IfModule mod_fileiri.c&gt;\r\n  FileIRI          On\r\n  FilenameCharset  Big5\r\n&lt;\/IfModule&gt;<\/pre>\n<p>\u9019\u6a23\u8a2d\u5b9a\u4e4b\u5f8c\uff0c\u6211\u5011\u7528 wget \u4f86\u6e2c\u8a66\u4e00\u4e0b\uff1a<\/p>\n<pre># wget -S -O \/dev\/null http:\/\/bbs.giga.net.tw\/fileiri\/\u4e2d\u6587.html\r\n--10:29:34--  <strong>http:\/\/bbs.giga.net.tw\/fileiri\/%A4%A4%A4%E5.html<\/strong>\r\n           =&gt; `\/dev\/null'\r\nResolving bbs.giga.net.tw... 203.187.29.180\r\nConnecting to bbs.giga.net.tw|203.187.29.180|:80... connected.\r\nHTTP request sent, awaiting response...\r\n<font color=\"blue\">  HTTP\/1.0 301 Moved Permanently<\/font>\r\n  Date: Thu, 08 Sep 2005 02:29:37 GMT\r\n  Server: Apache\/2.0.54 (FreeBSD) PHP\/5.0.4\r\n<font color=\"blue\">  Location: http:\/\/bbs.giga.net.tw\/fileiri\/%e4%b8%ad%e6%96%87.html<\/font>\r\n  Content-Length: 354\r\n  Content-Type: text\/html; charset=iso-8859-1\r\n  X-Cache: MISS from WebAmpRP@GIGAMEDIA\r\n  Connection: keep-alive\r\n\r\n<font color=\"blue\">Location: http:\/\/bbs.giga.net.tw\/fileiri\/%e4%b8%ad%e6%96%87.html [following]<\/font>\r\n--10:29:34--  <strong>http:\/\/bbs.giga.net.tw\/fileiri\/%e4%b8%ad%e6%96%87.html<\/strong>\r\n           =&gt; `\/dev\/null'\r\nReusing existing connection to bbs.giga.net.tw:80.\r\nHTTP request sent, awaiting response...\r\n<font color=\"blue\">  HTTP\/1.0 200 OK<\/font>\r\n  Date: Wed, 07 Sep 2005 12:36:30 GMT\r\n  Server: Apache\/2.0.54 (FreeBSD) PHP\/5.0.4\r\n  Last-Modified: Wed, 07 Sep 2005 12:31:33 GMT\r\n  ETag: \"30bd3-14-b986f340;bc359880\"\r\n  Accept-Ranges: bytes\r\n  Content-Length: 20\r\n  Content-Type: text\/html\r\n  Age: 451\r\n  X-Cache: HIT from WebAmpRP@GIGAMEDIA\r\n  Connection: keep-alive\r\nLength: 20 [text\/html]\r\n\r\n100%[====================================&gt;] 20\r\n\r\n10:29:34 (1.59 MB\/s) - `\/dev\/null' saved [20\/20]<\/pre>\n<p>\u5f9e\u4e0a\u9762\u53ef\u4ee5\u770b\u5230\uff0c\u539f\u672c\u7528 BIG5 \u7de8\u78bc\u7684 URL\uff0c\u88ab redirect \u6210 UTF-8 \u578b\u5f0f\u7684  URL\uff0c\u7136\u5f8c\u5c31\u53ef\u4ee5\u6b63\u78ba\u53d6\u5f97\u6a94\u6848\uff0c\u800c\u9019\u500b\u6a94\u6848\u300c\u4e2d\u6587.html\u300d\u5728\u6a94\u6848\u7cfb\u7d71\u4e0a\u662f\u7528 BIG5 \u578b\u5f0f\u547d\u540d\u7684<\/p>\n<p>\u56e0\u6b64\uff0c\u5229\u7528 <strong>FileIRI  On<\/strong> \u5c31\u53ef\u4ee5\u9806\u5229\u89e3\u6c7a\u5927\u90e8\u5206\u7684\u4e2d\u6587\u6a94\u540d\u554f\u984c\u4e86\uff01<\/p>\n<p>\u90a3\u5982\u679c\u4f60\u7684\u6a94\u6848\u540d\u7a31\u662f\u63a1\u7528 UTF-8 \u547d\u540d\u7684\u5462\uff1f\u9019\u6642\u5019\u4f60\u5c31\u9700\u8981\u4f7f\u7528  <strong>Backwards<\/strong> \u9019\u500b\u9078\u9805\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre class=\"tiny\">&lt;IfModule mod_fileiri.c&gt;\r\n  FileIRI             Backwards\r\n  OldFilenameCharset  Big5\r\n&lt;\/IfModule&gt;<\/pre>\n<p>\u4e0a\u8ff0\u8a2d\u5b9a\u7684\u610f\u601d\u662f\u8aaa\uff0c\u6240\u6709\u6a94\u6848\u7cfb\u7d71\u4e0a\u7684\u6a94\u6848\u90fd\u662f\u7528 UTF-8 \u547d\u540d\uff0c\u4f46\u662f\u5c0d\u65bc\u4e0d\u662f\u4f7f\u7528 UTF-8 \u7de8\u78bc\u65b9\u5f0f\u7684 URL\uff0c\u5c31\u6703\u628a\u5b83  redirect \u5230 UTF-8 \u7684\u7248\u672c\uff0c\u4e00\u6a23\u53ef\u4ee5\u63d0\u4f9b\u670d\u52d9<\/p>\n<p>FileIRI \u9084\u6709\u53e6\u5916\u4e00\u500b\u9078\u9805  <strong>Only<\/strong>\uff0c\u9019\u500b\u9078\u9805\u5247\u662f\u8a2d\u5b9a<strong>\u53ea\u63d0\u4f9b\u670d\u52d9<\/strong>\u7d66 UTF-8 \u7de8\u78bc\u904e\u7684 URL\uff0c\u800c\u6a94\u6848\u7cfb\u7d71\u4e0a\u7684\u6a94\u6848\u5247\u662f\u4f7f\u7528 Legacy  Encoding\u3002\u9019\u500b\u65b9\u5f0f\u8f03\u4e0d\u5e38\u7528\uff0c\u5c31\u4e0d\u591a\u4f5c\u4ecb\u7d39\u4e86<\/p>\n<p>\u5404\u7a2e\u8a2d\u5b9a\u7d44\u5408\u7522\u751f\u7684\u6548\u679c\u53ef\u4ee5\u53c3\u8003 <strong>mod_fileiri<\/strong>  \u539f\u59cb\u7db2\u7ad9\u4e0a\u9762\u7684\u8aaa\u660e\uff1a<\/p>\n<p><a href=\"http:\/\/www.w3.org\/2003\/06\/mod_fileiri\/\" target=\"_blank\">http:\/\/www.w3.org\/2003\/06\/mod_fileiri\/<\/a><\/p>\n<p>\u95dc\u65bc URL  \u7684\u5b57\u5143\u96c6\u7de8\u78bc\u554f\u984c\uff0c\u53ef\u4ee5\u53c3\u8003\u4e0b\u9762\u9019\u7bc7\u66f4\u8a73\u7d30\u7684\u8aaa\u660e\uff1a<\/p>\n<p><a href=\"http:\/\/www.w3.org\/International\/articles\/idn-and-iri\/#path\" target=\"_blank\">An Introduction to Multilingual Web Addresses &#8211; Handling the  path<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>URL \u542b\u4e2d\u6587\u8def\u5f91\u540d\u7a31\u7684\u7d42\u6975\u89e3\u6cd5 &#8211; \u5229\u7528 mod_fileiri \u89e3\u6c7a\u4e2d\u6587\u6a94\u540d\u554f\u984c \u7576\u7136\uff0c\u5c0d\u4ed8\u4e2d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-network"],"views":44445,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pubdi-o","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":426,"url":"https:\/\/dada.tw\/blog\/2011\/10\/28\/426\/","url_meta":{"origin":24,"position":0},"title":"\u5657\u6d6a\u6a5f\u5668\u4eba\u7bc4\u4f8b\u7a0b\u5f0f &#8211; \u4f7f\u7528 Plurk API 2.0","author":"dada","date":"2011-10-28","format":false,"excerpt":"\u9019\u7bc7\u6587\u7ae0\u8aaa\u660e\u5982\u4f55\u7528 Plurk API 2.0 \u81ea\u5df1\u5beb\u4e00\u500b\u5657\u6d6a\u6a5f\u5668\u4eba (\u672c\u6587\u540c\u6b65\u767c\u8868\u65bc \u5657\u6d6a\u5b98\u65b9\u90e8\u843d\u2026","rel":"","context":"\u5728\u300c\u8edf\u9ad4\u300d\u4e2d","block_context":{"text":"\u8edf\u9ad4","link":"https:\/\/dada.tw\/blog\/category\/comp\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.urdada.net\/wp-content\/uploads\/2011\/10\/bot-11.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":64,"url":"https:\/\/dada.tw\/blog\/2006\/10\/06\/64\/","url_meta":{"origin":24,"position":1},"title":"svndumpfilter with wildcards support ?","author":"dada","date":"2006-10-06","format":false,"excerpt":"Subversion \u7684 svnadmin obliterate \u529f\u80fd\u4e00\u76f4\u6c92\u6709\u5be6\u4f5c\u51fa\u4f86\uff0c\u9019\u5be6\u5728\u662f\u6709\u9ede\u2026","rel":"","context":"\u5728\u300c\u8edf\u9ad4\u300d\u4e2d","block_context":{"text":"\u8edf\u9ad4","link":"https:\/\/dada.tw\/blog\/category\/comp\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":45,"url":"https:\/\/dada.tw\/blog\/2005\/06\/05\/45\/","url_meta":{"origin":24,"position":2},"title":"\u5728 FreeBSD \u4e0b\u5b89\u88dd MySQL 4.1 &#8230;","author":"dada","date":"2005-06-05","format":false,"excerpt":"\u5728 FreeBSD \u4e0b\u9762\u7528 ports \u5b89\u88dd MySQL 4.1 \u5982\u679c\u4f60\u53ea\u8981\u7528 UTF-8 \u7684\u8a71\u5c31\u7b97\u2026","rel":"","context":"\u5728\u300c\u8edf\u9ad4\u300d\u4e2d","block_context":{"text":"\u8edf\u9ad4","link":"https:\/\/dada.tw\/blog\/category\/comp\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":77,"url":"https:\/\/dada.tw\/blog\/2008\/01\/19\/77\/","url_meta":{"origin":24,"position":3},"title":"SDHC support on Thinkpad X60","author":"dada","date":"2008-01-19","format":false,"excerpt":"Thinkpad X60 \u539f\u672c\u4e26\u6c92\u6709 \u652f\u63f4 SDHC \u5361\uff0c\u628a SDHC \u5361\u63d2\u5165 X60 \u5de6\u65b9\u7684 SD\u2026","rel":"","context":"\u5728\u300c\u786c\u9ad4\u300d\u4e2d","block_context":{"text":"\u786c\u9ad4","link":"https:\/\/dada.tw\/blog\/category\/comp\/hardware\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":84,"url":"https:\/\/dada.tw\/blog\/2008\/04\/18\/84\/","url_meta":{"origin":24,"position":4},"title":"Bypass the 2GB file size limit on 32-bit Linux","author":"dada","date":"2008-04-18","format":false,"excerpt":"Bypass the 2GB file size limit on 32-bit Linux (\u5728 \u2026","rel":"","context":"\u5728\u300c\u4f5c\u696d\u7cfb\u7d71\u300d\u4e2d","block_context":{"text":"\u4f5c\u696d\u7cfb\u7d71","link":"https:\/\/dada.tw\/blog\/category\/comp\/os\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":18,"url":"https:\/\/dada.tw\/blog\/2005\/06\/23\/18\/","url_meta":{"origin":24,"position":5},"title":"eAccelerator &#8211; PHP \u7db2\u9801\u52a0\u901f\u53ca\u7de8\u78bc","author":"dada","date":"2005-06-23","format":false,"excerpt":"eAccelerator - PHP \u7db2\u9801\u52a0\u901f\u53ca\u7de8\u78bc\u8edf\u9ad4 http:\/\/eaccelerator.n\u2026","rel":"","context":"\u5728\u300c\u7a0b\u5f0f\u8a9e\u8a00\u300d\u4e2d","block_context":{"text":"\u7a0b\u5f0f\u8a9e\u8a00","link":"https:\/\/dada.tw\/blog\/category\/comp\/language\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}