<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #960: Support non-ascii character in internal error messages</title>
    <link>http://localhost/ticket/960</link>
    <description>&lt;p&gt;
Just saw an error like the following which looks like it is to do with having a user object with non-ascii characters in it. Either get rid of 'cast' to str type here or do it in a unicode aware way.
&lt;/p&gt;
&lt;p&gt;
Should do this not just here but everywhere we can find in the code base.
&lt;/p&gt;
&lt;pre class="wiki"&gt;Module ckan.controllers.package:302 in edit
&amp;lt;&amp;lt;          am_authz = self.authorizer.am_authorized(c, model.Action.EDIT, pkg)
               if not am_authz:
                   abort(401, str(gettext('User %r not authorized to edit %s') % (c.user, id)))
               auth_for_change_state = self.authorizer.am_authorized(c, model.Action.CHANGE_STATE, pkg)
&amp;gt;&amp;gt;  abort(401, str(gettext('User %r not authorized to edit %s') % (c.user, id)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
&lt;/pre&gt;&lt;h2 id="Estimate"&gt;Estimate&lt;/h2&gt;
&lt;p&gt;
Cost: 1h
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/960</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>pudo</dc:creator>

      <pubDate>Mon, 07 Feb 2011 12:11:12 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/960#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/960#comment:1</guid>
      <description>
        &lt;p&gt;
Test this with a dedicated test using a unicode user name.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>pudo</dc:creator>

      <pubDate>Tue, 08 Feb 2011 12:44:16 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/960#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/960#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
fixed in cset:8cb94dcdecb2
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>