Tweeting with special characters e.g, !,' give error Could not authenticate you


Hello, I have been able to successfully tweet so far without any error but whenever i try to use some special characters like ! , ’ , ~ , % etc. the api returns could not authenticate you! I have been using tmhOAuth for php which has been working great, can you tell me how can I fix this