[BUG] Unicode Support
SleepingPanda opened this issue · 9 comments
@SleepingPanda thank you for your report. Could you by any chance share the original filename here?
@Pitu sure, the original file name is 本好きの下剋上.jpg
I have found the problem. It is caused by character set problem. Chibisafe use https://github.com/chibisafe/uploader as its multipart form uploader, which replies on busboy. The default character set for multipart forms is latin1
in Busboy
I have sent the pr chibisafe/uploader#11 for repo uploader to manually set charset to utf8 for multipart form.
After fixing it locally, I get the correct utf8 filename presentation.
![Snipaste_2024-02-08_21-09-36](https://private-user-images.githubusercontent.com/60178952/303470746-c1dbee86-2d6e-46b8-b284-4e6a54729e97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU1MTk3MTEsIm5iZiI6MTcxNTUxOTQxMSwicGF0aCI6Ii82MDE3ODk1Mi8zMDM0NzA3NDYtYzFkYmVlODYtMmQ2ZS00NmI4LWIyODQtNGU2YTU0NzI5ZTk3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTEyVDEzMTAxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyMzQyYTRiNjBmNDYwNjEyNDliMTcxNDU3NDRlOGRhMGY3M2E3NTNiODIyMDk2YmM3NmRiZWY2YWYxMzdjNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OMtfKQ68_LttoGLlVlSmBgeYMFrGCKWp1VKD-Nwg0oA)
Wow! Thank you for both finding a solution and fixing the problem.
After fixing it locally, I get the correct utf8 filename presentation.
You legend, I'll take a look today and make a new release after testing it
Released 🎉
Just want to inform that this issue has come back after the recent updates to Chibisafe.