Comments (4)
Hi ids93216,
I think if we change the lines 3038 and 3079 to the following:
htmlspecialchars($file->getName(),ENT_QUOTES, "UTF-8")
instead of
htmlentities($dir->getName())
your problem with the empty strings will be solved. I tested it on PHP 5.6.14 (Debian) and so far the avaiable "simplified Chinese" shows the chars without issues.
If you want to contribute with your translation, you can submit a pull request. Just copy the english or simplified chinese and change the translation in the quotes. Example:
$_TRANSLATIONS["zh_CN"] = array(
"file_name" => "文件名",
just use zh_TW instead of zh_CN in the first line.
I hope this will help you so far.
regards,
Ivo
from encode-explorer.
AFAIK, PHP on windows uses the ASCII versions of Win32 API so any char which is not on the ASCII table will simply not work.
from encode-explorer.
I found maybe is a solution on Windows servers.
There is a library called "php-wfio" on Github.
https://github.com/kenjiuno/php-wfio
This library only need to install it and add "wfio://" at the file path.
Example like "wfio://D:\中文名", I've tried it's working well.
Is there can support this library and make it as a option?
Thanks.
from encode-explorer.
I think you should give a try to Linux, as you probably won't spot such problems there, because OS is UTF-8 ready.
It was already a pain to implement encoding conventions on windows platform for Swedish and Russian.
from encode-explorer.
Related Issues (20)
- Failed to upload the file! error when uploading HOT 2
- Using it as web interface for igc2kmz convertor
- Issue with 'hidden_dirs' | logical error
- Empty folder for linked folders HOT 1
- Multi-Selection for download
- A file with Chinese characters can not display as usual. HOT 1
- imagelink HOT 3
- base_dir problem HOT 1
- My Folder list was truncated
- How to use in nginx HOT 2
- Problem with 'basedir' on Windows
- [feature] Allow to use own cdn or include jquery file HOT 3
- Slow browsing after server migration
- How to hide all files which starts with "._" at the beginning? HOT 7
- How to call php script on file click and pass it to php ? HOT 1
- php writes error_log file HOT 1
- Class name and function name cause errors HOT 1
- Simplified Chinese HOT 1
- [feature] Do not log directory access
- Security contact
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from encode-explorer.