Loading ...
Sorry, an error occurred while loading the content.

3644[Cheetahtemplate-discuss] cheetah not unicode compliant?!

Expand Messages
  • Miha Vrhovnik
    Apr 3, 2006

      I'm using Cheetah template 2.0 rc6 in embedded python 2.4 and in
      attached template i get:

      UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position
      840: ordinal not in range(128).

      Cheetah template is called using following code:
      # -*- coding: UTF-8 -*-
      import overdue
      from Cheetah.Template import Template, Filters

      t = Template(file=overdue.tplFileName.Value, searchList=[{'overdue':
      overdue, 'languageCode' : 'sl'}])

      #get html from template
      overdue.templateResult.Value = t.__str__();

    • Show all 6 messages in this topic