Giter Site home page Giter Site logo

Comments (3)

chrisjm avatar chrisjm commented on June 24, 2024

Ack! Great find @claytonjacobs ! What do you think, should we find and replace those characters or just strip them? The © symbol seems superfluous. The other symbols might be mdashes (—) so could probably be replaced with regular hyphens.

This does cause some concern for future Unicode (like Korean characters). We'll have to be vigilant about making sure those don't get stripped or modified in the future. Not sure how we accomplish that yet though... 🤔

from openbrewerydb.

claytonjacobs avatar claytonjacobs commented on June 24, 2024

@chrisjm superfluous for sure. Excuse me for my ignorance, but is there any data validation when someone adds to the dataset? Could we just (for now) only strip/replace these characters if country == "United States".

from openbrewerydb.

chrisjm avatar chrisjm commented on June 24, 2024

@claytonjacobs We do some validation (https://github.com/openbrewerydb/openbrewerydb/blob/master/src/validate-csv.ts) so that would definitely be the place to do it.

I think I want to do more research on why this happens. My assumption is decoding from Unicode to ASCI and then back again. So maybe we just want to ensure the file type is Unicode? Would be nice to find another project that's run into this problem and see how they handle it.

Anyway, the short term is to just manually correct, which I'll take care of soon.

from openbrewerydb.

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.