Skip to content

Set encoding to utf-8 when opening files#2

Open
paulfioravanti wants to merge 1 commit into
antistic:mainfrom
paulfioravanti:utf-8-encoding-on-file-open
Open

Set encoding to utf-8 when opening files#2
paulfioravanti wants to merge 1 commit into
antistic:mainfrom
paulfioravanti:utf-8-encoding-on-file-open

Conversation

@paulfioravanti
Copy link
Copy Markdown

After building up my steno dictionaries on macOS, I had cause to install Plover on Windows, and hence tried importing my dictionaries there. Three of them ended up being unable to be imported due to incomprehensible errors that looked like the following:

'charmap' codec can't decode byte 0x90 in position 6009398:
character maps to <undefined>

Explicitly setting file encoding to "utf-8" when opening files made the errors go away, and enabled the dictionaries to be imported successfully.

Thanks for making this plugin! Pretty much all my steno dictionaries are in Markdown :)

Explicitly set file encoding to utf-8 when opening files in order to avoid
inexplicable errors like the following when importing Markdown steno
dictionaries in Windows:

```
'charmap' codec can't decode byte 0x90 in position 6009398:
character maps to <undefined>
```
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