multer icon indicating copy to clipboard operation
multer copied to clipboard

Distortion of the Russian file name

Open sergej-js opened this issue 2 years ago • 4 comments
trafficstars

image image When uploading a file, the Russian original file name is distorted

sergej-js avatar Jul 18 '23 23:07 sergej-js

We have an open PR that fixes all the unicode issues in the lts version - https://github.com/expressjs/multer/pull/1210 You can ping the maintainers for speeding things up as well

Doc999tor avatar Jul 19 '23 15:07 Doc999tor

Got the same issue. Ping)

We have an open PR that fixes all the unicode issues in the lts version - #1210 You can ping the maintainers for speeding things up as well

Daimon-EuDaimon avatar Jul 24 '23 11:07 Daimon-EuDaimon

meanwhile you can use this file.originalname = Buffer.from(file.originalname, 'ascii').toString('utf8' );

elliot40404 avatar Aug 10 '23 19:08 elliot40404

meanwhile you can use this file.originalname = Buffer.from(file.originalname, 'ascii').toString('utf8' );

This works fine. Thank you for the advice 🙂

Daimon-EuDaimon avatar Aug 10 '23 21:08 Daimon-EuDaimon