🐛 Bug: Attachment-type data's title string doesn't match non-Ascii char #6760
Labels
Status: Reproducible
Able to reproduce the issue based on the reporters' guideline.
🐛 Type: Bug
Something is broken or incorrect unexpectedly.
Milestone
Please confirm if bug report does NOT exists already ?
Steps to reproduce ?
If a upload a file which named of Chinese chars, the file is uploaded well but the Title both in Database and Nocodb are unpretty string, eg. 油卡.txt --> æ²¹å�¡.txt. I haven't tried whether this issue is also with Cyrill letters or other languages.
And I tried to analyze it and found that the string of filename has been encoded as LATIN-1 codec instead of UTF-8 codec. So when the title of attachment is shown, it has been decoded as UTF-8, so the string is wrong.
Desired Behavior
Since the non-Ascii char in text field is saved and shown right, Maybe I think before the filename is transfered to title value, if should be forced encoded of UTF-8 char, this problem will be solved.
Project Details
NocoDB used as docker : true
NocoDB version : 0.202.4
Database used in NC_DB URL : sqlite3
Project was created by clicking : New Project
Database on which spreadsheet is created : sqlite3
OS on which NocoDB is running : Windows Docker Desktop
Node.js version if running as node : 18.17.1-r0
Attachments
The text was updated successfully, but these errors were encountered: