title: django unicode error on admin page
body: <p>I'm vaguely familiar with the nature of unicode, but I'm not sure how all the pieces fit together.  I have an error when displaying specific instances in the admin page.  </p>
  
  <blockquote>
    <p>Caught UnicodeEncodeError while
    rendering: 'ascii' codec can't encode
    character u'\u2019' in position 29:
    ordinal not in range(128)</p>
  </blockquote>
  
  <p>Here's my model:</p>
  
  <pre><code>class Proposal(models.Model):
      project = models.ForeignKey(Project)
      dateCreated = models.DateTimeField(editable=False)
      xml = models.TextField(max_length=1000000)
  
      def __str__(self):
          return str('Proposal for: %s' % self.project.name)
  </code></pre>
  
  <p>I've gone into my mysql database and verified that the DB, table, and column are all collated as utf8_unicode_ci, so I don't understand why the page is trying to render as ascii.  Looking at various forums and docs, I see mention of the <strong>str</strong> and <strong>unicode</strong> functions, but they don't seem to have anything to do with this as the list of instances shows up fine in on the admin page.  It's just showing the actual instance form that causes a problem.  </p>
  
  <p>Here's some example xml I pulled from phpmyadmin...</p>
  
  <pre><code>&lt;?xml version="1.0"  encoding="UTF-8"?&gt;
  &lt;proposal&gt;
  
    &lt;section title="OVERVIEW"&gt;
      &lt;section title="Introduction"&gt;
        &lt;text&gt;
      This proposal is not in the system because it was completed as an agreement in Word previous to us getting this application up and running.  Please refer to the attachments in this project for documentation or to see the agreement.
        &lt;/text&gt;
      &lt;/section&gt;
    &lt;/section&gt;
  &lt;/proposal&gt;
  </code></pre>
  
  <p>I've even tried to deliberately exclude the xml (which I can't do in the long run since I'd like it to be editable in the admin section), but I still get the same error, so I'm not even convinced the xml is even the problem.  If the xml isn't the problem, I have no idea what else could be keeping this page from being displayed.  </p>
  
  <pre><code>class ProposalAdmin(admin.ModelAdmin):
      exclude = ('xml',)
  admin.site.register(Project)
  </code></pre>