We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ae6a28 commit 49341eeCopy full SHA for 49341ee
README.md
@@ -272,7 +272,9 @@ specify the CSV data as `csv_data` either as a file-like object or string or
272
bytes containing file content:
273
274
```python
275
-with open('/path/to/glossary_file.csv', 'r') as csv_file:
+# Open the CSV file assuming UTF-8 encoding. If your file contains a BOM,
276
+# consider using encoding='utf-8-sig' instead.
277
+with open('/path/to/glossary_file.csv', 'r', encoding='utf-8') as csv_file:
278
csv_data = csv_file.read() # Read the file contents as a string
279
my_csv_glossary = translator.create_glossary_from_csv(
280
"CSV glossary",
0 commit comments