{"issue":{"title":"Notebooks downloaded as Python files require a header stating the encoding","created_at":"2011-12-15T15:15:17Z","user":{"login":"Midnighter","id":135653,"url":"https://api.github.com/users/Midnighter","gravatar_id":"116ce34aa017eaeca8224b3b344d4d12","avatar_url":"https://secure.gravatar.com/avatar/116ce34aa017eaeca8224b3b344d4d12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":{"title":"0.12","created_at":"2011-04-10T01:57:33Z","creator":{"login":"fperez","id":57394,"url":"https://api.github.com/users/fperez","gravatar_id":"95198572b00e5fbcd97fb5315215bf7a","avatar_url":"https://secure.gravatar.com/avatar/95198572b00e5fbcd97fb5315215bf7a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"open_issues":8,"state":"open","due_on":null,"closed_issues":136,"description":"Stabilization of new apis after we get 0.11 out the door.","number":6,"url":"https://api.github.com/repos/ipython/ipython/milestones/6"},"labels":[{"name":"prio-blocker","url":"https://api.github.com/repos/ipython/ipython/labels/prio-blocker","color":"f50505"},{"name":"quickfix","url":"https://api.github.com/repos/ipython/ipython/labels/quickfix","color":"ededed"},{"name":"status-active","url":"https://api.github.com/repos/ipython/ipython/labels/status-active","color":"eded11"},{"name":"type-bug","url":"https://api.github.com/repos/ipython/ipython/labels/type-bug","color":"d9596c"},{"name":"unicode","url":"https://api.github.com/repos/ipython/ipython/labels/unicode","color":"053485"}],"state":"open","updated_at":"2011-12-15T21:20:52Z","id":2567637,"html_url":"https://github.com/ipython/ipython/issues/1156","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"number":1156,"body":"The following problem occurred: I have a notebook with a mardown cell that contains non-ASCII characters. When I try to run the file I get the following error:\r\n\r\nSyntaxError: Non-ASCII character '\\xc3' in file bla.py on line 11, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details\r\n\r\neven though the offending character is commented.\r\n\r\nPutting something like `# -*- coding: utf-8 -*-` in the first or second line of the file solves the problem, I think this should be standard procedure for exporting the notebook.","url":"https://api.github.com/repos/ipython/ipython/issues/1156","comments":5,"assignee":null},"comment":{"created_at":"2011-12-15T21:20:52Z","user":{"login":"fperez","id":57394,"url":"https://api.github.com/users/fperez","gravatar_id":"95198572b00e5fbcd97fb5315215bf7a","avatar_url":"https://secure.gravatar.com/avatar/95198572b00e5fbcd97fb5315215bf7a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-15T21:20:52Z","id":3169222,"body":"@bfroehle, believe it or not, it's the JSON *spec* that doesn't support comments, period.  Fortunately in this case, the issue is about what we wrtie to disk on .py files, as @takluyver points out, so we don't need to worry about JSON for this issue.","url":"https://api.github.com/repos/ipython/ipython/issues/comments/3169222"},"action":"created"}