{"action":"opened","issue":{"url":"https://api.github.com/repos/obshtestvo/opendata/issues/1","labels_url":"https://api.github.com/repos/obshtestvo/opendata/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/obshtestvo/opendata/issues/1/comments","events_url":"https://api.github.com/repos/obshtestvo/opendata/issues/1/events","html_url":"https://github.com/obshtestvo/opendata/issues/1","id":65472179,"number":1,"title":"Проблем с показване/обработка на ресурс UnicodeEncodeError","user":{"login":"mitio","id":129307,"avatar_url":"https://avatars.githubusercontent.com/u/129307?v=3","gravatar_id":"","url":"https://api.github.com/users/mitio","html_url":"https://github.com/mitio","followers_url":"https://api.github.com/users/mitio/followers","following_url":"https://api.github.com/users/mitio/following{/other_user}","gists_url":"https://api.github.com/users/mitio/gists{/gist_id}","starred_url":"https://api.github.com/users/mitio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitio/subscriptions","organizations_url":"https://api.github.com/users/mitio/orgs","repos_url":"https://api.github.com/users/mitio/repos","events_url":"https://api.github.com/users/mitio/events{/privacy}","received_events_url":"https://api.github.com/users/mitio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-31T15:01:29Z","updated_at":"2015-03-31T15:01:29Z","closed_at":null,"body":"Създавам грешката тук, защото не е ясно точно кой компонент на CKAN е отговорен за проблема.\r\n\r\nПодробности за грешката има в имейл с Message-Id` `20150331134726.3B8A261AB6@opendata.government.bg`.\r\n\r\nГрешка:\r\n\r\n> WebApp Error: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 131-133: ordinal not in range(128)\r\n\r\nBacktrace:\r\n\r\n\tModule /var/www/ckan/virtualenv/src/ckan/ckan/templates/package/snippets/view_form_filters.html:39 in top-level template code\r\n\t<<    data-module = \"resource-view-filters-form\"\r\n\t         data-module-resource-id = \"{{ resource['id'] }}\"\r\n\t         data-module-template-filter-inputs = \"{{ h.remove_linebreaks(templateFilterInputs) }}\"\r\n\t         data-module-filters-selector = \".resource-view-filters\"\r\n\t         data-module-add-filter-selector = \".resource-view-add-filter\"\r\n\t>>  data-module-template-filter-inputs = \"{{ h.remove_linebreaks(templateFilterInputs) }}\"\r\n\tModule ckan.lib.helpers:1806 in remove_linebreaks\r\n\t<<  def remove_linebreaks(string):\r\n\t           '''Remove linebreaks from string to make it usable in JavaScript'''\r\n\t           return str(string).replace('\\n', '')\r\n\t       \r\n\t       def list_dict_filter(list_, search_field, output_field, value):\r\n\t>>  return str(string).replace('\\n', '')\r\n\tUnicodeEncodeError: 'ascii' codec can't encode characters in position 131-133: ordinal not in range(128)\r\n\r\nПримерни адреси, на които става това URL:\r\n\r\n- http://opendata.government.bg/dataset/statistical-classifications/resource/b6858bc6-faca-4590-a0c1-e2d0d419417e/edit_view/d01f80f6-f3d0-44b2-9d36-8a1474728a69"}}