Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Handle UTF-8 encoding #32

Merged
merged 2 commits into from
Oct 26, 2015
Merged

Handle UTF-8 encoding #32

merged 2 commits into from
Oct 26, 2015

Conversation

alexander-daniel
Copy link
Contributor

Will Resolve: #15, #24, #26

So the issue is fixed on the backend API to handle UTF filenames.

I've made this change where we create a new Buffer from the urlencoded string, and that fixes the count error for content-length where UTF8 chars count as 2.

Feel free to give it a try:
https://gist.github.com/alexander-daniel/bc8021e8be3d157ad16a

@bpostlethwaite @etpinard

@etpinard
Copy link
Contributor

Looks good. 💃

Can you add that case to test.js though?

@etpinard
Copy link
Contributor

💃

alexander-daniel added a commit that referenced this pull request Oct 26, 2015
@alexander-daniel alexander-daniel merged commit 2289034 into master Oct 26, 2015
@alexander-daniel alexander-daniel deleted the utf-8 branch October 26, 2015 14:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problems with Umlauts when uploading data with node.js
2 participants