Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decode-csv struggles with escape sign "\" in string-values #496

Open
TobiasNx opened this issue Aug 24, 2023 · 2 comments
Open

decode-csv struggles with escape sign "\" in string-values #496

TobiasNx opened this issue Aug 24, 2023 · 2 comments
Assignees
Labels

Comments

@TobiasNx
Copy link
Contributor

TobiasNx commented Aug 24, 2023

https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7Cas-lines%0A%7Cdecode-csv%0A%7Cencode-json%0A%7Cprint%0A%3B&data=%22a%22%2C%22b\t%22%2C%22c\\t%22%2C%22\%22%2C%22\cd\%22

in:

"a","b\t","c\\t","\","\cd\"

FLUX:

open-file
|as-lines
|decode-csv
|encode-json
|print
;

out:

{"0":"a","1":"bt","2":"c\\t","3":"\",cd\""}
@TobiasNx TobiasNx added the Bug label Aug 24, 2023
@TobiasNx
Copy link
Contributor Author

This is relevant for: hbz/lobid-organisations#486

@TobiasNx
Copy link
Contributor Author

We could delete them with the help of a match pattern.

@dr0i dr0i self-assigned this Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Selected
Development

No branches or pull requests

2 participants