Resolves an issue in which the Windows platform cannot use the Chinese upgrade description when uploading apps to the Dandelion Pgyer platform via Curl

Source: Internet
Author: User

Fixed an issue where the Windows platform could not use the Chinese upgrade description when uploading apps to the Dandelion Pgyer platform via Curl official upload command

curl -F [email protected]"315.apk" -F uKey=XXX -F _api_key=OOO -F updateDescription=中文 http://www.pgyer.com/piv1/app/upload

Problem description

The same command:

    • When uploading an IPA file on the Mac platform, the Chinese update description will be displayed correctly
    • however , when uploading the APK file on the Windows platform, the update prompt appears blank .
    • The "Update Prompt" in English will always be displayed correctly.
Solution 1 (failed)

Content-Type: application/x-www-form-urlencoded; charset=utf-8Request failed Prompt "character set not supported"
Content-Type: multipart/form-data; charset=utf-8Can upload successfully, but still do not support Chinese prompts.

Solution 2 (Success)

Reference: In Windows7, the default encoding GB2312, how to call the Bmob REST API with Curl successfully written in Chinese? -Bmob back-end cloud

It is suggested that running curl in Cygwin can normally be submitted in Chinese. So I tried it. Sure enough!

The entire Cygwin environment is more than 100 MB, but after manually extracting the curl-dependent DLL, only 11.5MB is required.

So what really solves the problem is the CURL program itself.

Individual Curl programs that have the same version number packaged will never be able to upload Chinese correctly.
Such as:

curl-7.50.3-win64-mingw.7zcurl_7_50_3_openssl_nghttp2_x64.7z

Extraction process See also: Cygwin version of Curl installation, extraction, use notes-asion Tang-Blog Park

Resolves an issue in which the Windows platform cannot use the Chinese upgrade description when uploading apps to the Dandelion Pgyer platform via Curl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.