Hello, fellow twitters, My app encountered errors on twitter update API when I try to send Unicode string.
My app is writtin in Python, I made a slight modification in a library that is found on http://oauth.net/ My code is not prepared to be opened to public, but I can say that when I send ASCII string, it works. It's like this, when I say "%=" (a percent sign, and an equal), my app try to sign on a string like this, POST&http%3A%2F%2Ftwitter.com%2Fstatuses%2Fupdate.xml& oauth_consumer_key%3D...(omit)...%26status%3D%2525%253D A request body is like this, status=%25%3D And, it works, like this: http://twitter.com/khopkun/status/1502555481 Now, I send a Unicode charactor, "あ " (not sure displayed on your screen properly, it's Japanese) Signed on a string: POST&http%3A%2F%2F...(omit)...%26status%3D%25E3%2581%2582 And a body is: status=%E3%81%82 (It's utf-8, I guess. 3 bytes needed for one Japanese charactor) then got an error, "Failed to validate oauth signature or token" status 401. I am wondering why ASCII charactors are okay, and Unicode are not. Any suggestion anyone?