Coder Social home page Coder Social logo

Import / Export in CSV about sci-corpus HOT 3 CLOSED

dpizetta avatar dpizetta commented on July 2, 2024
Import / Export in CSV

from sci-corpus.

Comments (3)

dpizetta avatar dpizetta commented on July 2, 2024

Tiago, do you know how to solve this?

sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

Because if I convert into UNICODE, they show this:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 30: ordinal not in range(128)

Its just a local problem? Like some character that could not be decoded?

from sci-corpus.

tiagocampo avatar tiagocampo commented on July 2, 2024

No, its not a local problem!

Now we are using unicode to encode the chars. Maybe we can change this. I also have this problem and when I get this I go through the sentence and replace all the strange chars like [-, , /, etc]. Usually this solves the problem.

from sci-corpus.

dpizetta avatar dpizetta commented on July 2, 2024

I fix it, the second problem was a local problem...with the file...I do cut and paste of some phrases and many strange characters still in the text. Now its OK and all of that are unicode. But I will treat what you comment as a exception maybe in another commit. TKS

from sci-corpus.

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.