Skip to content

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128) #7

@ramygad

Description

@ramygad

Hi,

I have tested your tool I got following errors.

Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import orcid
brinkmann = orcid.get('0000-0003-3083-2775')
print brinkmann
Traceback (most recent call last):
File "", line 1, in
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)
print brinkmann.name
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'Author' object has no attribute 'name'
print brinkmann.family_name
Brinkmann
print brinkmann.publications
Traceback (most recent call last):
File "", line 1, in
File "orcid/rest.py", line 107, in publications
self._load_works()
File "orcid/rest.py", line 101, in _load_works
+ '/orcid-works', headers = BASE_HEADERS)
TypeError: cannot concatenate 'str' and 'NoneType' objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions