{"action":"created","issue":{"url":"https://api.github.com/repos/BabylonJS/Extensions/issues/8","labels_url":"https://api.github.com/repos/BabylonJS/Extensions/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/BabylonJS/Extensions/issues/8/comments","events_url":"https://api.github.com/repos/BabylonJS/Extensions/issues/8/events","html_url":"https://github.com/BabylonJS/Extensions/issues/8","id":123890094,"number":8,"title":"Exporting with io_tower_of_babel.py fails \"with 'charmap' codec can't encode character '\\u015d' in position 8: character maps to <undefined>\"","user":{"login":"matra774","id":1160680,"avatar_url":"https://avatars.githubusercontent.com/u/1160680?v=3","gravatar_id":"","url":"https://api.github.com/users/matra774","html_url":"https://github.com/matra774","followers_url":"https://api.github.com/users/matra774/followers","following_url":"https://api.github.com/users/matra774/following{/other_user}","gists_url":"https://api.github.com/users/matra774/gists{/gist_id}","starred_url":"https://api.github.com/users/matra774/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matra774/subscriptions","organizations_url":"https://api.github.com/users/matra774/orgs","repos_url":"https://api.github.com/users/matra774/repos","events_url":"https://api.github.com/users/matra774/events{/privacy}","received_events_url":"https://api.github.com/users/matra774/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-25T16:57:08Z","updated_at":"2015-12-28T20:25:27Z","closed_at":"2015-12-28T20:25:27Z","body":"Exporting simple model form Blender fails with \r\n\r\n>========= Writing of javascript file started =========\r\n>========= An error was encountered =========\r\n>  File \"C:\\Users\\matejt\\AppData\\Roaming\\Blender Foundation\\Blender\\2.76\\scripts\\addons\\io_tower_of_babel.py\", line 411, in execute\r\n>    if (scene.export_javaScript): self.to_script_file(False, version)\r\n>  File \"C:\\Users\\matejt\\AppData\\Roaming\\Blender Foundation\\Blender\\2.76\\scripts\\addons\\io_tower_of_babel.py\", line 463, in to_script_file\r\n>    file_handler.write('    var ŝ = BABYLON;\\n')\r\n>  File \"D:\\Blender\\2.76\\python\\lib\\encodings\\cp1250.py\", line 19, in encode\r\n>    return codecs.charmap_encode(input,self.errors,encoding_table)[0]\r\n>ERROR:  'charmap' codec can't encode character '\\u015d' in position 8: character maps to <undefined>\r\n>========= end of processing =========\r\n\r\nProbably, the reason is that line 463 (and also some other lines) contains unicode characters that can not be processed by OS.\r\n\r\nI am using Bledner 2.76b on  Windows 7 "},"comment":{"url":"https://api.github.com/repos/BabylonJS/Extensions/issues/comments/167646280","html_url":"https://github.com/BabylonJS/Extensions/issues/8#issuecomment-167646280","issue_url":"https://api.github.com/repos/BabylonJS/Extensions/issues/8","id":167646280,"user":{"login":"Palmer-JC","id":7916131,"avatar_url":"https://avatars.githubusercontent.com/u/7916131?v=3","gravatar_id":"","url":"https://api.github.com/users/Palmer-JC","html_url":"https://github.com/Palmer-JC","followers_url":"https://api.github.com/users/Palmer-JC/followers","following_url":"https://api.github.com/users/Palmer-JC/following{/other_user}","gists_url":"https://api.github.com/users/Palmer-JC/gists{/gist_id}","starred_url":"https://api.github.com/users/Palmer-JC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palmer-JC/subscriptions","organizations_url":"https://api.github.com/users/Palmer-JC/orgs","repos_url":"https://api.github.com/users/Palmer-JC/repos","events_url":"https://api.github.com/users/Palmer-JC/events{/privacy}","received_events_url":"https://api.github.com/users/Palmer-JC/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T20:25:27Z","updated_at":"2015-12-28T20:25:27Z","body":"Just fixed another issue common to both exporters related to baking.  Looking at this now.  The intent was to reduce file size by changing BABYLON & BABYLON.Matrix.FromValues to single unused characters.\r\n\r\nThis runs fine in Linux, but can adjust so it works for all.  As they are variables inside the scope of the module, will change to 'B' and 'M' without danger of collision in next PR, today."}}