cURL / Mailing Lists / curl-users / Single Mail


How to make a status update at Twitter

From: Roland Msl <>
Date: Wed, 28 Jul 2010 21:23:05 +0200

I can not find out where my failure is

Twitter expects Unicode at posting.a status update
So I assumed to combine URL-endocding
and UTF-8 encoding.

to POST this, I used --data-binary

The message

Msl hofft, da UTF-8 klappt m m

(This lines contains all special German characters and square and cubic)

Tha bacht file to test CURL

c:\internet\\cgi-bin\command-curl\curl.exe --user-agent WSC/4.7 --data-binary status=M%C3%B6sl+hofft%2C+da%C3%9F+UTF-8+klappt+%C3%84%C3%96%C3%9C+%C3%A4%C3%B6%C3%BC+%C3%9F+m%C2%B2+m%C2%B3 --user XXX:XXX

I applied URL encoding and German speccal characters with Unicode

-> %C3%B6 -> B6 insteat of ""

But the Result shows, I even failed at the ","

, -> %2C -> C instead of ","

What comes out at Twitter

MB6sl hofftC da9F UTF-8 klappt 84969C A4B6BC 9F mB2 mB3

Please, what am I doing wrong?

best regards

Msl Roland
List admin:
Received on 2010-07-28