Problem to set 'pt' language
See original GitHub issueSpellChecker is working for any supported languages, except for Portuguese (‘pt’).
When I try using spell = SpellChecker('pt')
, an error message appears saying:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 587200: character maps to <undefined>
I’ve also tried to load the dictionary the other way around:
spell = SpellChecker(language=None)
spell.word_frequency.load_dictionary('path/to/pt.json.gz', encoding=u'utf-8')
The same error occurs.
I’m using Python 3.6.8 in Windows 10.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error on setting language to Portuguese · Issue #10002 - GitHub
Error on setting language to Portuguese #10002 QGC Language should change from English to Portuguese when set on Application Settings.
Read more >Portuguese Brazil and Portuguese P… - Apple Developer
When I launch app with Portuguese Brazil (PT-BR) language as a system language, then the app is localized with Portuguese Portugal instead of...
Read more >[Resolved] Change code in Permalink from pt-br to pt - WPML
Problem: We defined the language and were almost done, but we noticed that we made a mistake with the code of the language....
Read more >If you have an application localized in pt-br and pt-pt, what ...
Q1: How to I determine the predominant languages for a specified meta-language? I need a solution that will include at least Portuguese, English...
Read more >Lenovo Smart clock - unable to change "display language" on ...
Select the Assistant tab and change the language from there. Then reset the clock and set it up using the Google account you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@barrust, I tested the branch you asked. It is working.
Hi @barrust! Thanks for answering.
Indeed, it seems this problem occurs only on Windows. However, I tried to debug the problem and changed that line I’ve suggested. It worked.
I’ll test it.