Comments (3)
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.
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.
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)
- no license HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhondt.