Giter Site home page Giter Site logo

crash with unicode error about groovebasin HOT 4 CLOSED

andrewrk avatar andrewrk commented on September 22, 2024
crash with unicode error

from groovebasin.

Comments (4)

thejoshwolfe avatar thejoshwolfe commented on September 22, 2024

Everyone hates that unicode character. It crashed my phone, it crashed wolfebin, it crashed groovebasin, and browsers are rendering it as the invalid character glyph. I wonder if there's a unicode character for a mini troll face.

from groovebasin.

thejoshwolfe avatar thejoshwolfe commented on September 22, 2024

The filename as a python3 bytes:

b'002 Sackpipsl\xe4t (Instrumental, Sweden).mp3'

When decoded with the Windows default encoding (Windows-1252 aka ISO-8859-1), the correct title is:

002 Sackpipslät (Instrumental, Sweden).mp3

The problem is that 0xe4 is invalid in utf8.

So now what do we do?

from groovebasin.

thejoshwolfe avatar thejoshwolfe commented on September 22, 2024

Here's my recommendation: https://gist.github.com/2729954

The script fixes the encodings.

from groovebasin.

thejoshwolfe avatar thejoshwolfe commented on September 22, 2024

I'm closing this issue because I think it's a user problem. Uploading files through groovebasin will never do this, so I say the library admin who stuck the files in should have made sure the file names were sensible.

from groovebasin.

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.