Skip to content

- Add UTF8 parameter to read config file. This avoid the following er…#1

Open
jgijgi wants to merge 3 commits intomarwan-tanager:masterfrom
jgijgi:master
Open

- Add UTF8 parameter to read config file. This avoid the following er…#1
jgijgi wants to merge 3 commits intomarwan-tanager:masterfrom
jgijgi:master

Conversation

@jgijgi
Copy link

@jgijgi jgijgi commented Oct 4, 2021

Hello,
When trying to run extrakto on a Centos7, it fails because it was unable to read the config file due to some non-ASCII characters.
I added UTF-8 parameter to the read method and it worked fine.
Thanks.

Julien Girard and others added 3 commits October 4, 2021 10:04
…ror:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 261: ordinal not in range(128)
- This is due to non-ascii characters in the following lines (present twice in extrakto.conf)
 regex: ([^][(){}=$~T~@-~^~@~@_ \t\n\r]+).
  an environment variable @extrakto_default_filter_mode
- default is 'all' to be retrocompatible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant