Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug: Attachment-type data's title string doesn't match non-Ascii char #6760

Closed
1 task done
snowity opened this issue Oct 20, 2023 · 0 comments · Fixed by #6824
Closed
1 task done

🐛 Bug: Attachment-type data's title string doesn't match non-Ascii char #6760

snowity opened this issue Oct 20, 2023 · 0 comments · Fixed by #6824
Assignees
Labels
Status: Reproducible Able to reproduce the issue based on the reporters' guideline. 🐛 Type: Bug Something is broken or incorrect unexpectedly.
Milestone

Comments

@snowity
Copy link

snowity commented Oct 20, 2023

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

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

image

@dstala dstala added the Status: Reproducible Able to reproduce the issue based on the reporters' guideline. label Oct 20, 2023
@dstala dstala added this to the vNext milestone Oct 20, 2023
@wingkwong wingkwong self-assigned this Oct 29, 2023
@wingkwong wingkwong added the 🐛 Type: Bug Something is broken or incorrect unexpectedly. label Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reproducible Able to reproduce the issue based on the reporters' guideline. 🐛 Type: Bug Something is broken or incorrect unexpectedly.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants