Conversation
|
I think a better and more backwards compatible solution would be to add a |
Uhm, I do not follow you. |
You can specify the default character set when you create the |
|
Additionally regarding the backwards compatibility, while this solution may work for your use case, breaking everyone else's code by adding another parameter to event handlers is not a good idea. If this PR's changes were added as-is, everyone would suddenly be getting a Buffer instead of the |
Yeah, you are absolutely right, I will rewrite this to ensure that the code will not break for everyone. Thanks for the suggestion |
|
Owever, there should be a config to force the buffer charset. The |
2082523 to
b468ac0
Compare
|
@mscdex in the end I added a new config. |
|
Hey @mscdex, I was just wondering if you had the time to review the latest changes I applied |
Feature request #323
When dealing with a third-party tool I noticed that some of the part of the multipart were with a particular charset, and others were with utf-8.
Since busboy assumes that all fields are from the same charset, this leads to an issue when parsing.
I added a raw buffer to the data emitted for the fields to be able to directly work with the Buffer and parse it with the correct charset.