mssaravanan / socialauth-android

Automatically exported from code.google.com/p/socialauth-android
0 stars 0 forks source link

Twitter uploadImageAsync not working with special characters #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to use mAdapter.uploadImageAsync with the following message: “Chaque 
âme devient ce qu’elle contemple.”
2. Check your twitter posts, it never gets published.
3. The same message gets published if using mAdapter.updateStatus. (But I need 
to upload an image)

What is the expected output? What do you see instead?
Publish the message with special characters as mAdapter.updateStatus does with 
the image included.

What version of the product are you using? On what operating system?
socialauth-4.0.jar
socialauth-android-2.1.jar

android 2.2 - 4.2

Please provide any additional information below.

I have tried URLEncoding (message = URLEncoder.encode(message);) the string 
sent with the uploadImageAsync.. in this case the message gets published but it 
is not decoded looking as this:

so that this string: 
“Chaque âme devient ce qu’elle contemple.”

is publishes like this:
%E2%80%9CChaque+%C3%A2me+devient+ce+qu%E2%80%99elle+contemple.%E2%80%9D

Any ideas of how could I quick fix this?

Original issue reported on code.google.com by edua...@magicsolver.com on 25 Apr 2013 at 9:17

GoogleCodeExporter commented 8 years ago
presently we are not handling special characters. we can take it as enhancement.

Original comment by vineet.a...@3pillarglobal.com on 25 Apr 2013 at 9:29

GoogleCodeExporter commented 8 years ago
That would be great, I think it would be a pity having such a good method as 
uploadImageAsync jeopardized whenever an app would run in languages like 
french, spanish, german... where special characters are quite common.

Original comment by edua...@magicsolver.com on 25 Apr 2013 at 9:57

GoogleCodeExporter commented 8 years ago
Hi , we are looking to release next version in next 2 weeks. In case you have 
any issues , requests please let us know. We will try to incorporate them.

Original comment by vineet.a...@3pillarglobal.com on 22 May 2013 at 11:03

GoogleCodeExporter commented 8 years ago
So in this next version we should be able to use the method uploadImageAsync 
with a message including special characters, right?

I would be happy to test it as soon as it is available.

Original comment by edua...@magicsolver.com on 22 May 2013 at 11:17

GoogleCodeExporter commented 8 years ago
check latest sdk 2.5. It should solve your issue.

Original comment by l...@3pillarglobal.com on 10 Jun 2013 at 3:21