s4
changeset 395:3d82052c3cd3
Do htmlescape() for euc-jp string and restore to original charset
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 06 Dec 2016 12:32:04 +0859 |
parents | f095e97066c5 |
children | cacd961d3405 |
files | s4-funcs.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/s4-funcs.sh Mon Dec 05 14:21:23 2016 +0859 1.2 +++ b/s4-funcs.sh Tue Dec 06 12:32:04 2016 +0859 1.3 @@ -3432,7 +3432,7 @@ 1.4 if [ -z "$3" ]; then 1.5 ct="text/html${charset:+; charset=$charset}" 1.6 link="?showattc+$1+$2+raw" 1.7 - cat $bin | htmlescape \ 1.8 + nkf -e $bin | htmlescape | nkf --oc="$charset" \ 1.9 | sed 's,^,<span></span>,' \ 1.10 | _m4 -D_TITLE_="$fn" -D_CONTENT_TYPE_="$ct" \ 1.11 -D_LINK_="$link" \