rctatman / Kaggle-API-GCP

Script to push and pull kernels using Cloud Functions
Apache License 2.0
2 stars 2 forks source link

Pulling script kernels results in an encoding error #1

Open rctatman opened 5 years ago

rctatman commented 5 years ago

When trying to pull script kernels, the following a character encoding error is returned. Example:

$ kaggle kernels pull rtatman/dashboarding-with-notebooks-day-2-r -m
'latin-1' codec can't encode character u'\u2019' in position 1450: ordinal not in range(256)
rctatman commented 5 years ago

Update: this only affects .R and RMarkdown scripts. Python scripts seem to pull without error.

RobHarrand commented 5 years ago

Had the same issue. The culprit was a 'RIGHT SINGLE QUOTATION MARK' (U+2019) character that I'd copied and pasted from a Word file into the kernel (actually, mine was a U + 2018 left single quotation mark). Once I swapped it for a 'standard' quotation mark (i.e. by typing it into the kernel), it was fine.