You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "google-analytics.py", line 59, in <module>
report = unicode(query.serialize(format='csv', with_metadata=False))
File "/usr/local/lib/python2.7/dist-packages/googleanalytics/query.py", line 240, in serialize
writer.writerows(self.rows)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 14: ordinal not in range(128)
Sadly I'm am pretty inexperienced in Python. I've already tried adding # encoding: utf-8 to google-analytics.py with no success.
Am I using it wrong? How can I generate a CSV report where the values contain UTF-8 characters?
The text was updated successfully, but these errors were encountered:
I am trying to write a CSV report that contains UTF-8 values in the dimension values (specifically
ga:searchKeyword
).Generating the report works fine using
However, trying to use the CSV format with
will result in the error
Sadly I'm am pretty inexperienced in Python. I've already tried adding
# encoding: utf-8
togoogle-analytics.py
with no success.Am I using it wrong? How can I generate a CSV report where the values contain UTF-8 characters?
The text was updated successfully, but these errors were encountered: