Nginx-Fancyindex-Theme icon indicating copy to clipboard operation
Nginx-Fancyindex-Theme copied to clipboard

How to deal with display Chinese characters

Open legolas-zeng opened this issue 6 years ago • 3 comments

image as shown in figure,I want to show Chinese, but it will cause confusion

legolas-zeng avatar Jan 31 '19 01:01 legolas-zeng

image

as shown in figure,I want to show Chinese, but it will cause confusion

legolas-zeng avatar Jan 31 '19 01:01 legolas-zeng

In this line https://github.com/TheInsomniac/Nginx-Fancyindex-Theme/blob/f6b958bf75c44bd1faf5ed0b2cbbf2b7ec9f88a7/footer.html#L12 replace unescape with decodeURIComponent It would be like this

breadcrumbs += '<a href="' +  currentPath + '">' + window.decodeURIComponent(segments[i]) + '<\/a>';

dausruddin avatar Aug 07 '19 07:08 dausruddin

In this line

https://github.com/TheInsomniac/Nginx-Fancyindex-Theme/blob/f6b958bf75c44bd1faf5ed0b2cbbf2b7ec9f88a7/footer.html#L12 replace unescape with decodeURIComponent It would be like this

breadcrumbs += '<a href="' +  currentPath + '">' + window.decodeURIComponent(segments[i]) + '<\/a>';

Thanks for your reply. it works when i refresh the whole page. if i only click directory, it's not working. after change history.js, it works!

history.js 图片

wjsaya avatar Feb 20 '21 09:02 wjsaya