STEMcoffee / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

Hebrew encoding problems #189

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I'm using the python-twitter API in order to get Tweets in Hebrew.
The API is working, I managed to get the Tweets, but instead of Hebrew
I get Gibberish.
2.I changed the encoding to 'windows-1255' in twitter.py, but it still
doesn't work.
3.I changed the encoding to 'ISO 8859-8' in twitter.py, but it still
doesn't work.

What is the expected output? What do you see instead?
I want to get the Tweets in Hebrew, bit I get them in Gibberish

What version of the product are you using? On what operating system?
Python 2.7

Please provide any additional information below.

what else can I do? mybe I need to define the encoding in another place?
Thanks!

Original issue reported on code.google.com by maayan1...@gmail.com on 12 Mar 2011 at 2:43

GoogleCodeExporter commented 8 years ago
which version of python-twitter are you using?  in 0.8.* all of the json data 
received from twitter should be unicode.

Original comment by bear42 on 1 Apr 2011 at 12:37

GoogleCodeExporter commented 8 years ago
twitter-python 0.8.1
Thank you for your help, but I've decided to change to Csharp-Twitter API.

Original comment by maayan1...@gmail.com on 1 Apr 2011 at 6:34

GoogleCodeExporter commented 8 years ago
sorry that it didn't work out but also happy you are able to get your code 
running with the csharp lib!

I will keep the bug open if you don't mind so I can use it to remind me to test 
with Hebrew unicode strings - I think it's because of the mbcs encoding but not 
sure.

Original comment by bear42 on 1 Apr 2011 at 4:11