Giter VIP home page Giter VIP logo

Comments (12)

BrianInGermany avatar BrianInGermany commented on August 16, 2024 1

Tried it on another windows computer even, and it is working fine. Must be a setting on my other machine.

from csv2md.

lzakharov avatar lzakharov commented on August 16, 2024

@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.

BrianInGermany avatar BrianInGermany commented on August 16, 2024

from csv2md.

BrianInGermany avatar BrianInGermany commented on August 16, 2024

Original CSV:

word;status
Über;bad
Redefreiheit;good
Fußball;bad
östlich;bad
Fähre;bad
noUmlaut;good
Weizen;good
Korn;good

from csv2md.

BrianInGermany avatar BrianInGermany commented on August 16, 2024

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.

lzakharov avatar lzakharov commented on August 16, 2024

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.

BrianInGermany avatar BrianInGermany commented on August 16, 2024

It still working for me fine:

csv2md a.csv -d ";" > a.md

Original 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.

lzakharov avatar lzakharov commented on August 16, 2024

It still working for me fine:

csv2md a.csv -d ";" > a.md

Original 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.

BrianInGermany avatar BrianInGermany commented on August 16, 2024

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.

BrianInGermany avatar BrianInGermany commented on August 16, 2024

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

The symbols have changed strangely.

from csv2md.

lzakharov avatar lzakharov commented on August 16, 2024

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.

BrianInGermany avatar BrianInGermany commented on August 16, 2024

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.

Ok, that could well be the cause. Thanks for the help.

from csv2md.

Related Issues (11)

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.