mscdex / busboy

A streaming parser for HTML form data for node.js
MIT License
2.84k stars 213 forks source link

Bug on UTF-8 filenames #339

Closed wesleimarinho closed 1 year ago

wesleimarinho commented 1 year ago

After updating to the lasting version, I've noticed that filenames containing utf-8 characters such as 'Declaração.pdf' are not processed correctly by busboy anymore, giving wrong file name after its processing.

wesleimarinho commented 1 year ago

Found how to solve it using the configuration defParamCharset.

andylwelch commented 11 months ago

I just updated from v0.3 and this also caught me. Ideally this should be more obvious in the "Breaking Changes" guide, or the defParamCharset should be utf8 instead of latin1 to maintain backwards compatibility.