Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: multipart/form-data values are not encoded on Android #7526

Closed
1 of 3 tasks
malo-malo opened this issue Jun 20, 2024 · 2 comments · Fixed by #7525
Closed
1 of 3 tasks

[Bug]: multipart/form-data values are not encoded on Android #7526

malo-malo opened this issue Jun 20, 2024 · 2 comments · Fixed by #7525
Labels
plugin: http type: bug A confirmed bug report

Comments

@malo-malo
Copy link
Contributor

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.1.0
@capacitor/core: 6.1.0
@capacitor/android: 6.1.0
@capacitor/ios: 6.1.0

Installed Dependencies:

@capacitor/cli: 5.7.5
@capacitor/core: 5.7.6
@capacitor/android: 5.7.6
@capacitor/ios: 5.7.6

[success] Android looking great! 👌
[error] Xcode is not installed

Other API Details

$ npm --version
10.5.0
$ node --version
v20.12.1

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

When using multipart/form-data in a POST request on Android, the values are not encoded, which is problematic when the values contain accents or emojis for example

On the web and on iOS the values are correctly encoded

Expected Behavior

Accents should be correctly encoded on Android

Project Reproduction

https://github.com/malo-malo/capacitor-android-encoding

Additional Information

I have fixed the issue for my case, and opened a merge request with my solution, so it can be used by everyone
#7525

@malo-malo malo-malo changed the title [Bug]: [Bug]: multipart/form-data values are not encoded on Android Jun 20, 2024
@jcesarmobile jcesarmobile added type: bug A confirmed bug report plugin: http labels Jun 20, 2024
Copy link

ionitron-bot bot commented Jun 20, 2024

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

Copy link

ionitron-bot bot commented Jul 24, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jul 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin: http type: bug A confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants