Kaggle / Kaggle/kaggle-cli

Encoding issues when pushing a kernel

Open
#186 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
1.4k
Avg merge
3d 15h
Merged PRs (30d)
11

Description

I'm running into an error when trying to push a kernel via the API (Python 3.6, kaggle API 1.5.3).

This code file works:

`print('hello world')`

This code file:

`print('ẁ')`

produces this error:

> 'charmap' codec can't decode byte 0x81 in position 9: character maps to undefined

The issue seems to be similar to #146. It is rather critical for NLP tasks, because 'weird' characters are often hardcoded in the script (e.g. the two most-upvoted public kernels in the current Jigsaw competition can't be submitted via the API because of this issue).

I also posted this question in the Kaggle forum, but haven't received an answer yet. I will cross-update any responses I'll get (either here or on Kaggle).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.