Nginx-Fancyindex-Theme
Nginx-Fancyindex-Theme copied to clipboard
How to deal with display Chinese characters
as shown in figure,I want to show Chinese, but it will cause confusion
as shown in figure,I want to show Chinese, but it will cause confusion
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>';
In this line
https://github.com/TheInsomniac/Nginx-Fancyindex-Theme/blob/f6b958bf75c44bd1faf5ed0b2cbbf2b7ec9f88a7/footer.html#L12 replace
unescape
withdecodeURIComponent
It would be like thisbreadcrumbs += '<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