{"action":"created","issue":{"url":"https://api.github.com/repos/hgrecco/pint/issues/292","labels_url":"https://api.github.com/repos/hgrecco/pint/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/hgrecco/pint/issues/292/comments","events_url":"https://api.github.com/repos/hgrecco/pint/issues/292/events","html_url":"https://github.com/hgrecco/pint/issues/292","id":106845174,"number":292,"title":"units with non-ascii names","user":{"login":"tobiasli","id":6882012,"avatar_url":"https://avatars.githubusercontent.com/u/6882012?v=3","gravatar_id":"","url":"https://api.github.com/users/tobiasli","html_url":"https://github.com/tobiasli","followers_url":"https://api.github.com/users/tobiasli/followers","following_url":"https://api.github.com/users/tobiasli/following{/other_user}","gists_url":"https://api.github.com/users/tobiasli/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiasli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiasli/subscriptions","organizations_url":"https://api.github.com/users/tobiasli/orgs","repos_url":"https://api.github.com/users/tobiasli/repos","events_url":"https://api.github.com/users/tobiasli/events{/privacy}","received_events_url":"https://api.github.com/users/tobiasli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-16T19:26:25Z","updated_at":"2015-11-10T13:32:45Z","closed_at":"2015-11-10T13:32:45Z","body":"There are non-ascii characters in the default unit definition file. But trying to parse them raises exceptions do to what seems like faulty parsing. Is there any workaround?\r\n\r\n```python\r\n>>> from pint import UnitRegistry\r\n>>> UNITS = UnitRegistry()\r\n>>> UNITS.parse_expression(u'1 ångström')\r\nTraceback (most recent call last):\r\n  File \"<interactive input>\", line 1, in <module>\r\n  File \"C:\\Anaconda\\lib\\site-packages\\pint\\unit.py\", line 1251, in parse_expression\r\n    raise UndefinedUnitError(unknown)\r\nUndefinedUnitError: 'ngstr' is not defined in the unit registry\r\n```\r\n\r\nI'm working with some Norwegian units which have non-ascii characters in them (i.e. å), but the module does not seem to support unicode characters even though they exist in the unit definition."},"comment":{"url":"https://api.github.com/repos/hgrecco/pint/issues/comments/155419999","html_url":"https://github.com/hgrecco/pint/issues/292#issuecomment-155419999","issue_url":"https://api.github.com/repos/hgrecco/pint/issues/292","id":155419999,"user":{"login":"tobiasli","id":6882012,"avatar_url":"https://avatars.githubusercontent.com/u/6882012?v=3","gravatar_id":"","url":"https://api.github.com/users/tobiasli","html_url":"https://github.com/tobiasli","followers_url":"https://api.github.com/users/tobiasli/followers","following_url":"https://api.github.com/users/tobiasli/following{/other_user}","gists_url":"https://api.github.com/users/tobiasli/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiasli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiasli/subscriptions","organizations_url":"https://api.github.com/users/tobiasli/orgs","repos_url":"https://api.github.com/users/tobiasli/repos","events_url":"https://api.github.com/users/tobiasli/events{/privacy}","received_events_url":"https://api.github.com/users/tobiasli/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T13:32:45Z","updated_at":"2015-11-10T13:32:45Z","body":"Ported to 3.4 and everything works smoothly."}}