Open kashifaliquazi opened 4 years ago
same here with Korean. any hint?
@juicycool92
const bodyBuffer = Buffer.from(event['body-json'].toString(), 'base64');
const boundary = multipart.getBoundary(
event.params.header['Content-Type'] || event.params.header['content-type']
);
const parts = multipart.Parse(bodyBuffer, boundary);
const { filename } = parts[0];
console.log('filename ===>', filename); // á\x84\x82á\x85¡á\x84\x8Bá\x85´á\x84\x91á\x85¡á\x84\x8Bá\x85µá\x86¯.png
let filename_ = Buffer.from(filename, 'binary').toString();
console.log('filename_ ===>', filename_); // 나의파일.jpg
Special character like é ,ó , é are not getting properly parsed
for example
éviépinóé is converting to éviépinóé.
We are not sure which part on parsing is causing the issue and how to fix this.