Archived Forum Post

Index of archived forum posts

Question:

HTTP: convert vowls

Dec 27 '12 at 18:46

I stumbled across a problem which i am not sure how to solve. If i want to post to twitter with lets say some special chars (like ä,ö,ß) in statustext, i get something back like this:

{"errors":[{"message":"Could not authenticate you","code":32}]}

It looks like i have to convert those letters before sending them, because it breaks it somewhere on the way :-/ ?

CString updstat = "some stuff here äßöü";

req.AddParam("status",updstat);

Log shows e.g.:

RequestParams:
RequestItem:
name: status
value: ö

EDIT: Same request without such mutated vowls or special-chars works.


Answer

Did add the charset for utf-8

solved :)