dokuwiki預設編碼
這是本文件的舊版!
網址列:
https://wiki.feuer.idv.tw/doku.php?id=測試&do=edit
但在系統中 ls 卻是 /usr/share/dokuwiki/data/pages/%E6%B8%AC%E8%A9%A6.txt
原來,是把 “測試” 經過 Quoted-Printable 編碼,再取代 “=” 而成。
# echo 測試 | qprint -e - =E6=B8=AC=E8=A9=A6
# echo %E6%B8%AC%E8%A9%A6|sed 's/%/=/g' | qprint -d - 測試
把 /usr/share/dokuwiki/conf/dokuwiki.php 中,$conf['fnencode'] = 'url'; 改為 'utf-8'
系統中看到檔名像是 utf8 碼號文字:
-rw-r--r-- 1 apache apache 363 Jun 4 00:46 'dokuwiki'$'\351\240\220\350\250\255\347\267\250\347\242\274''.txt' -rw-r--r-- 1 apache apache 4 Jun 4 00:48 ''$'\346\270\254\350\251\246''.txt' -rw-r--r-- 1 apache apache 219 Jun 4 01:03 ''$'\350\243\275\344\275\234''_live_environment.txt'
不過 ls 可以自動補正確檔名。
ls > start.txt , 在 start 頁面可以看到中文。
dokuwiki預設編碼.1622740163.txt.gz · 上一次變更: 2021/06/03 17:09 由 fire