On 9 nov, 00:13, Sébastien RAGONS <srag...@gmail.com> wrote:
> Hello,
>
> I try to display an article but there is char like 'é'.

Django uses only unicode internally. If you take care of using utf8
encoding all the way down (python source files, template source files,
database, webserver etc) you shouldn't have any problem with non-ascii
characters.

But anyway : I don't see how it relates to your problem:

> The template is correctly displayed but there is no trace
> of the article (and no error are logged).
>
> the line 'print html' show th article correctky:
> <h2>Table des matières</h2>
> <ul class="toc"><li><a class="tocSection" href="#id2537437">Erreur
> 404</a></li></ul>
> <h1 class="title" id="id2537437">Erreur 404</h1>
> <p>
> La page demandée n'existe pas !
> </p>


Is that really the content you're expecting ?

> If i remove all the 'é', the page is correct and full
>
> def displayArticle(request, nomArticle):
>     article = Article()

This creates a new empty instance of class Article - whatever that
class is.

>     html = article.lecture(nomArticle)

What is this code supposed to do ?

>     print html
>     return render_to_response('article.html',
>         {'article': html})
>
> It's not a probleme with the template

hard to tell without seeing the template code.

> because if i send 'é'
> throw it, it's ok.

And ?

> could you help me

How do you think we can help you when you don't provide enough
informations ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to