-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTF 8 file parsing failed #6
Comments
Hi @anupshaw50 - when import sys
sys.getdefaultencoding() I hesitate to hardcode the encoding as you're suggesting, although given that I've written this lib to focus on exports from PubMed itself, it may make sense to do so. |
FYI, as a temporary workaround, you may use |
Hi, its |
If |
Could you share the code & error on your system when running the nbib file attached to this issue? Thanks |
Hi,
on file _parsing.py the function read_file(path: str) fails to read file exported from pubmed.
Replace this line with line 20
with open(path, mode='r', encoding='utf-8') as f:
sample file attached that fails parsing, please remove the txt at the end
test.nbib.txt
The text was updated successfully, but these errors were encountered: