Comments (12)
Tried it on another windows computer even, and it is working fine. Must be a setting on my other machine.
from csv2md.
@DarmstadtBri, thanks for the contribution! If not difficult, send a minimal example with expected and actual results.
It seems to be working fine:
Input:
a,b
ä,ö
Output:
| a | b |
| - | - |
| ä | ö |
from csv2md.
from csv2md.
Original CSV:
word;status
Über;bad
Redefreiheit;good
Fußball;bad
östlich;bad
Fähre;bad
noUmlaut;good
Weizen;good
Korn;good
from csv2md.
Hi Lev, Thanks for writing the library! Attached is a sample table and result. Maybe you could add a parameter for encoding. Another error: If the CSV contains empty lines, it writes an empty markdown table. Cheers, Brian | word;status | | ----------------- | | Über;bad | | Redefreiheit;good | | Fußball;bad | | östlich;bad | | Fähre;bad | | noUmlaut;good | | Weizen;good | | Korn;good |
I have opened a separate issue for the ";" delimiter not working.
from csv2md.
It still working for me fine (with version 1.1.2
):
csv2md a.csv -d ";" > a.md
Original CSV and result: archive.zip.
Maybe you need check encoding on your host machine?
from csv2md.
It still working for me fine:
csv2md a.csv -d ";" > a.mdOriginal CSV and result: archive.zip.
Maybe you need check encoding on your host machine?
Aha. I did not save to file, but copied out of the console
from csv2md.
It still working for me fine:
csv2md a.csv -d ";" > a.mdOriginal CSV and result: archive.zip.
Maybe you need check encoding on your host machine?Aha. I did not save to file, but copied out of the console
Hm, maybe you have to set encoding to UTF-8 in your terminal:)
from csv2md.
Strange, even when I write to file I get this on windows:
mdTable.txt
word | status |
---|---|
Über | bad |
Redefreiheit | good |
Fußball | bad |
├╢stlich | bad |
Fähre | bad |
noUmlaut | good |
Weizen | good |
Korn | good |
from csv2md.
Strange, even when I write to file I get this on windows:
mdTable.txtword status
Über bad
Redefreiheit good
Fußball bad
├╢stlich bad
Fähre bad
noUmlaut good
Weizen good
Korn good
The symbols have changed strangely.
from csv2md.
I'm totally sure that Windows tries to write the result with it's own encoding. That's why you get such result. I've opened my a.md
with win-1251
encoding and got the same strange symbols. Unfortunately, I haven't used Windows for five years and don’t know how to help you. Maybe you need to change global system encoding to UTF-8.
from csv2md.
I'm totally sure that Windows tries to write the result with it's own encoding. That's why you get such result. I've opened my
a.md
withwin-1251
encoding and got the same strange symbols. Unfortunately, I haven't used Windows for five years and don’t know how to help you. Maybe you need to change global system encoding to UTF-8.
Ok, that could well be the cause. Thanks for the help.
from csv2md.
Related Issues (11)
- No LICENSE file in pip package. Error on install HOT 1
- 1.0.1 removed from pypi? HOT 2
- Setting delimiter to semicolon does not always work HOT 2
- How to use it inside python? HOT 2
- support csv with no header? HOT 2
- Specify Tab delimiter HOT 5
- Ability to filter columns HOT 1
- Modern setup HOT 2
- [Bug] column alignment is not working and suggestion for better syntax HOT 7
- Support headings output in addition to tables
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 csv2md.