Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate UnicodeEncodeError #2

Open
nigini opened this issue Feb 20, 2012 · 0 comments
Open

Investigate UnicodeEncodeError #2

nigini opened this issue Feb 20, 2012 · 0 comments

Comments

@nigini
Copy link
Member

nigini commented Feb 20, 2012

Running in my linux machine (from the scratch) I had this error when accessing any data from the site:

File "/mnt/work/Workspace/Python/destelado/web/templates/deputado/list.html", line 76, in block "content"
    <td class="name"><a href="/deputados/{{ deputado.id }}">{{ deputado.nome.decode('iso-8859-1') }}</a></td>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128)

I could run it erasing the decode() call, but I know some of you need this! Why!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant