cyberpanel icon indicating copy to clipboard operation
cyberpanel copied to clipboard

Cyber panel cannot upload file that name in Thai language on web file manager

Open nogamenolifeth opened this issue 4 years ago • 2 comments

Get when try to upload file with thai language (no problem on English)

ภาพ

Cyberpanel : 1.9 Build 1 Os: Cent os 7 Client: Windows 10 1903, Firefox 69.0.3

nogamenolifeth avatar Oct 16 '19 14:10 nogamenolifeth

Confirming that the primary scope of this issue remains. However, the error showed above no longer appears. After some testing:

  • A file named นี่คือคำในภาษาไทย.txt WILL show as uploaded in the upload window: Screen Shot 2021-02-05 at 7 00 17 PM

  • However, it WILL NOT appear in the in the File Manager when uploaded this way. It WILL appear if uploaded via FTP but WILL NOT be readable by the File Manager: Screen Shot 2021-02-05 at 7 02 37 PM

That said, I have my language set to English and did not test it in any other language. Maybe @whattheserver could shed more light on if this is due to no locale for Thai or an encoding problem (not my area of expertise). If it is, @pacharachantawong perhaps you could consider helping translate CyberPanel since there is no current support for Thai.

Additionally, if you would like to see support for Thai (assuming that's the issue) and do not want to translate it yourself, please post in the Feature Request forums and close this issue.

jordanlambrecht avatar Feb 06 '21 01:02 jordanlambrecht

I believe this stems from a .decode('ascii') somewhere in the template, but am not 100% sure on where. I'm seeing a few instances of using utf-8 sprinkled around in the code base, so that seems like a good things to change to. Not certain on the thought process of using just ascii here. @usmannasir might be able to chime in here, as there might be something I'm missing as to why the need for ascii.

Lvl4Sword avatar Nov 22 '23 19:11 Lvl4Sword