Error! blahfile is not UTF-8 encoded. Saving disabled

后端 未结 1 1150
太阳男子
太阳男子 2020-12-20 15:11

So, I\'m trying to write a gzip file, actually from the net, but to simplify I wrote some very basic test.

import gzip
LINES = [b\'I am a test line\' for _ i         


        
相关标签:
1条回答
  • 2020-12-20 16:03

    The very simple answer to this is none of the above. This is a very misleading error message, especially when the code you've written was designed to save a binary file with a weird extension.

    What this actually means is ...

        I HAVE NO IDEA HOW TO DISPLAY THIS DATA ! - Yours Jupyter
    

    So, go to your File Explorer, Finder navigate to the just saved file and open it. Voila !! Everything worked exactly as planned, there is no error.

    Hope this saves other people many hours of debugging, and please Jupyter, change your error message.

    0 讨论(0)
提交回复
热议问题