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