Code Monkey home page Code Monkey logo

Comments (3)

badukaire avatar badukaire commented on July 28, 2024

I leave a comment here regarding my forked repo. I have added some features, basically plain text table output + command-line options. The main code remains untouched, I have tried to keep indenting to ease merging. I plan to refactor it with a class before I add more stuff.

I have no intention to use the code with commercial purposes, but let me know if you have any expectations regarding the use.

from dhondt.

rg3 avatar rg3 commented on July 28, 2024

Dealing with encodings can be frustrating both in code and in external files. This tiny script is written with UTF-8 in mind, which is the common configuration for most Linux systems nowadays. The HTML output is declared to be in UTF-8 and the input file should be in UTF-8 too. I've tested that and it works for me. Feel free to reopen the issue if something fails using UTF-8.

By the way, to convert a Latin1 file to UTF-8 simply use iconv -f LATIN1 -t UTF-8 -o OUTPUT_FILE INPUT_FILE and be done with it.

from dhondt.

rg3 avatar rg3 commented on July 28, 2024

Sorry, my mistake. The HTML output encoding is taken from the locale preferred encoding. As long as the input file encoding and locale configuration match, the script should work. Problems may arise with environments in one preferred locale and input in a different one.

from dhondt.

Related Issues (2)

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.