{"action":"created","issue":{"url":"https://api.github.com/repos/andreasjansson/envtpl/issues/18","repository_url":"https://api.github.com/repos/andreasjansson/envtpl","labels_url":"https://api.github.com/repos/andreasjansson/envtpl/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/andreasjansson/envtpl/issues/18/comments","events_url":"https://api.github.com/repos/andreasjansson/envtpl/issues/18/events","html_url":"https://github.com/andreasjansson/envtpl/issues/18","id":150067326,"number":18,"title":"utf8 input is not supported","user":{"login":"thefab","id":303097,"avatar_url":"https://avatars.githubusercontent.com/u/303097?v=3","gravatar_id":"","url":"https://api.github.com/users/thefab","html_url":"https://github.com/thefab","followers_url":"https://api.github.com/users/thefab/followers","following_url":"https://api.github.com/users/thefab/following{/other_user}","gists_url":"https://api.github.com/users/thefab/gists{/gist_id}","starred_url":"https://api.github.com/users/thefab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefab/subscriptions","organizations_url":"https://api.github.com/users/thefab/orgs","repos_url":"https://api.github.com/users/thefab/repos","events_url":"https://api.github.com/users/thefab/events{/privacy}","received_events_url":"https://api.github.com/users/thefab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T13:00:39Z","updated_at":"2016-05-17T19:52:25Z","closed_at":null,"body":"utf8 encoded templates files are not supported\r\n\r\nexample:\r\n\r\n```bash\r\n(envtpl)[root@a609b96871ce ~]# echo \"ééé\" |envtpl \r\nTraceback (most recent call last):\r\n  File \"/opt/envtpl/bin/envtpl\", line 9, in <module>\r\n    load_entry_point('envtpl==0.5.0', 'console_scripts', 'envtpl')()\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/envtpl.py\", line 53, in main\r\n    process_file(args.input_file, args.output_file, variables, not args.allow_missing, not args.keep_template)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/envtpl.py\", line 79, in process_file\r\n    output = _render_string(sys.stdin.read(), variables, undefined)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/envtpl.py\", line 93, in _render_string\r\n    return _render(template_name, loader, variables, undefined)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/envtpl.py\", line 105, in _render\r\n    template = env.get_template(template_name)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/jinja2/environment.py\", line 812, in get_template\r\n    return self._load_template(name, self.make_globals(globals))\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/jinja2/environment.py\", line 786, in _load_template\r\n    template = self.loader.load(self, name, globals)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/jinja2/loaders.py\", line 125, in load\r\n    code = environment.compile(source, name, filename)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/jinja2/environment.py\", line 551, in compile\r\n    source = self._parse(source, name, filename)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/jinja2/environment.py\", line 470, in _parse\r\n    return Parser(self, source, name, encode_filename(filename)).parse()\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/jinja2/parser.py\", line 31, in __init__\r\n    self.stream = environment._tokenize(source, name, filename, state)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/jinja2/environment.py\", line 501, in _tokenize\r\n    source = self.preprocess(source, name, filename)\r\n  File \"/opt/envtpl/lib/python2.6/site-packages/jinja2/environment.py\", line 495, in preprocess\r\n    self.iter_extensions(), text_type(source))\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)\r\n```"},"comment":{"url":"https://api.github.com/repos/andreasjansson/envtpl/issues/comments/219833511","html_url":"https://github.com/andreasjansson/envtpl/issues/18#issuecomment-219833511","issue_url":"https://api.github.com/repos/andreasjansson/envtpl/issues/18","id":219833511,"user":{"login":"andreasjansson","id":713993,"avatar_url":"https://avatars.githubusercontent.com/u/713993?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasjansson","html_url":"https://github.com/andreasjansson","followers_url":"https://api.github.com/users/andreasjansson/followers","following_url":"https://api.github.com/users/andreasjansson/following{/other_user}","gists_url":"https://api.github.com/users/andreasjansson/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasjansson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasjansson/subscriptions","organizations_url":"https://api.github.com/users/andreasjansson/orgs","repos_url":"https://api.github.com/users/andreasjansson/repos","events_url":"https://api.github.com/users/andreasjansson/events{/privacy}","received_events_url":"https://api.github.com/users/andreasjansson/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T19:52:25Z","updated_at":"2016-05-17T19:52:25Z","body":"Fixed in https://github.com/andreasjansson/envtpl/commit/de4997b98ab3b5058da5007e08372893571d9d4d"}}