Skip to content

Commit

Permalink
fix #59
Browse files Browse the repository at this point in the history
change input encoding from utf8 to ansi
  • Loading branch information
drunsinn committed Feb 10, 2024
1 parent cce5f7e commit 17dafdb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
- Baptou88
- Md-aliy7
- npalmerDNX
- Andreas-strg

## Usage
See [lsv2_demo.py](https://github.com/drunsinn/pyLSV2/blob/master/pyLSV2/demos/lsv2_demo.py) for a demonstration of some of the functions.
Expand Down
2 changes: 1 addition & 1 deletion pyLSV2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .translate_messages import *
from .err import *

__version__ = "1.3"
__version__ = "1.3.1"
__author__ = "drunsinn"
__license__ = "MIT"
__email__ = "[email protected]"
2 changes: 1 addition & 1 deletion pyLSV2/table_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def parse_table(table_path: pathlib.Path) -> "NCTable":
raise FileNotFoundError("Could not open file %s" % table_path)

try:
with table_file.open(mode="r", encoding="utf-8") as tfp:
with table_file.open(mode="r", encoding="ansi") as tfp:
header_line = tfp.readline().strip()
logger.debug("Checking line for header: %s", header_line)
header = re.match(
Expand Down

0 comments on commit 17dafdb

Please sign in to comment.