Git Product home page Git Product logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
check in which coding it's your output, but i added there this data =
simplejson.loads(json, 'iso8859-1') (because of default web server output). 
Reason
is, that you're not sending any of standard browser user-agent. if you'll send 
for
example mozilla, then your output will be in utf-8. use chardet for 
identifiacion

Original comment by [email protected] on 20 Feb 2009 at 7:47

from python-twitter.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
you're right to suspect what the encoding is, its quite strange the output of 
chardet
first of all i m on a Leopard machine with all installed in english

now if I input abc just before PostUpdate i get this

abc
{'confidence': 1.0, 'encoding': 'ascii'}

if i input abcñ, i get this encoding

abcñ
{'confidence': 0.98999999999999999, 'encoding': 'EUC-JP'}
will investigate to see why this change is ocurring

Original comment by [email protected] on 20 Feb 2009 at 7:59

from python-twitter.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Forgot to state that this input is coming from std in, caught this way :

sys.stdin.readline()

Original comment by [email protected] on 20 Feb 2009 at 8:00

from python-twitter.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
[deleted comment]

from python-twitter.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Ok, forget it, no issue, just set up third parameter in constructor and you're 
set.

sorry bout it.

rewrote the function and saw that there was a problem with that aprameter, and 
then finally saw i had to specify 
it.
sorry bout that, thanks for the lib, works great.

Original comment by [email protected] on 21 Feb 2009 at 2:43

from python-twitter.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Thanks for following up, cromestant.  I'm marking this Invalid but please feel 
free
to reopen if there are further related issues.

Original comment by dclinton on 21 Feb 2009 at 4:26

  • Changed state: Invalid

from python-twitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.