looker-open-source / pylookml

A pythonic api for automatic lookml
https://pylookml.readthedocs.io/en/latest/introduction.html
MIT License
44 stars 22 forks source link

Cannot get lookml files with double-byte characters #37

Closed YSArch closed 3 years ago

YSArch commented 3 years ago

in lookml.py, it's hardcoded decode by 'ascii'.

Parse Step: Github content is returned base64 encoded

data = base64.b64decode(f.content).decode('ascii')

russlooker commented 3 years ago

This is now fixed in the latest release on pypi version 3.0.0 I saw that was only for github projects I believe, but it should be all utf-8 compatible now try a pip uninstall lookml pip install lookml