POST to /statuses/update.json with special characters fails error code 32: Could not authenticate you


#1

Hi All
I have successfully integrated Twitter Post tweets functionality with my classic ASP application. I did find though that it had issues with special characters like :, (, * - , . etc. Some of these need to be replaced by their Hex codes and some of them not e.g. (. - _ ~).
Well having taken care of most of the special characters I am now fumbled with internationalization. To start with I am using Spanish characters like Á É Í Ñ Ó Ú etc there are so many of them. I did customize code to produce exactly the same base string as Twitter OAuth tool would generate but everytime I get this error 32 : Could not authenticate user.
Has anybody done similar stuff? Any ideas?

For a test data = status=X€X¡X«X»X¿XÁXÉXÍXÑXÓXÚXÜXáXéXíXñXóXúXûXüXýXþXÿX

OAuth Tool generated Base String


POST&https%3A%2F%2Fapi.twitter.com%2F1.1%2Fstatuses%2Fupdate.json&oauth_consumer_key%3DauAU5tLMBKAPyIVLdF1KR7u55%26oauth_nonce%3Dc337c8396c39566cde44bd6b372d2d0d%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1430660474%26oauth_token%3D3177182274-HP43c1ERjZ3JGPr0pr1NJVCHRMpoKSwAdXFZcL4%26oauth_version%3D1.0%26status%3DX%25E2%2582%25ACX%25C2%25A1X%25C2%25ABX%25C2%25BBX%25C2%25BFX%25C3%2581X%25C3%2589X%25C3%258DX%25C3%2591X%25C3%2593X%25C3%259AX%25C3%259CX%25C3%25A1X%25C3%25A9X%25C3%25ADX%25C3%25B1X%25C3%25B3X%25C3%25BAX%25C3%25BBX%25C3%25BCX%25C3%25BDX%25C3%25BEX%25C3%25BFX

And my script generated


POST&https%3A%2F%2Fapi.twitter.com%2F1.1%2Fstatuses%2Fupdate.json&oauth_consumer_key%3DauAU5tLMBKAPyIVLdF1KR7u55%26oauth_nonce%3D151601908615160190861516019086%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1430660558%26oauth_token%3D3177182274-HP43c1ERjZ3JGPr0pr1NJVCHRMpoKSwAdXFZcL4%26oauth_version%3D1.0%26status%3DX%25E2%2582%25ACX%25C2%25A1X%25C2%25ABX%25C2%25BBX%25C2%25BFX%25C3%2581X%25C3%2589X%25C3%258DX%25C3%2591X%25C3%2593X%25C3%259AX%25C3%259CX%25C3%25A1X%25C3%25A9X%25C3%25ADX%25C3%25B1X%25C3%25B3X%25C3%25BAX%25C3%25BBX%25C3%25BCX%25C3%25BDX%25C3%25BEX%25C3%25BFX

as you can see it is same other than few paramters which ofcourse will change for each request. I can find out what is happening, please help.

Thanks
Ajitabh