ebsco / ebscopy

The official Python wrapper for the EBSCO Discovery Service API
GNU General Public License v3.0
15 stars 5 forks source link

All stringify functions should handle unicode #6

Open jessejensen opened 9 years ago

jessejensen commented 9 years ago
>>> record = s.retrieve(res_gw.record[0])
>>> record.pprint()
Title: Global warming [electronic resource] : engineering solutions / Ibrahim Dincer ... [et al.], editors.
Author: <searchLink fieldCode="AR" term="%22Dinçer%2C+İbrahim%22">Dinçer, İbrahim</searchLink>, 1964-
PLink: http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=cat03706a&AN=uoc.8892414
DbId: cat03706a
An: uoc.8892414

>>> print record
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0130' in position 192: ordinal not in range(128)
>>>