cURL / Mailing Lists / curl-users / Single Mail

curl-users

Windows POST --data-binary UTF-8 encoding problem

From: Petr Lázňovský <lazna_at_volny.cz>
Date: Tue, 28 Jan 2014 23:51:45 +0100

trying to post JSON data to following API by curl.exe

http://docs.fakturoid.apiary.io/#post-%2Fapi%2Fv2%2Faccounts%2F%7Bslug%7D%2Fsubjects.json

Have windows cmdline switched into codepage 65001 (UTF-8) but got error. Asking API maintainer, there is some (unspecified) characters encoding problem (UTF-8 is mandatory for success action) in the program log. Whole posted data come from windows cmdline, not from file. Reading data from API by curl.exe works fine.

Questions are: Did CURL something with charactes encoding by reading data from stdin and push them into network? How can I investigate problem? Any ideas?

thank you, Petr Lázňovský

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-28