The function is exactly the one I posted :) (yeah - plus a "def
FourOhFour(page):" around it).

The template won't be so helpful for you, as I do not use
web.py-templates (but mako). Can be found here [1] nevertheless.

Please check the following things:

- the file where you do 'raise web.notfound("Cette page ne peut être
accessible.")' has utf-8 encoding
- this file has '# -*- coding: utf-8 -*-' at the very beginning
- you pass a unicode string instead of bytestring (so it should read:
'raise web.notfound(u"Cette page ne peut être accessible.")' -- note the
'u"..."')

[1] http://git.necoro.eu/portato/web.git/tree/templates/404.mako

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to