Repository navigation
Commit 1809abf
Brian Merchant
Allow handling of utf-8 encoded files
Currently, if you try to register a word like "Walchaís" (not accent on i) with `language_tool_python`, so that it is ignored in spell check, we get a Unicode encoding error. This can be fixed by letting the functions which read/write custom spellings: `_register_spellings` and `_unregister_spellings`.
We could improve this by letting these functions take a variable called `encoding`.1 parent 424b2a6 commit 1809abf
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments