[silva-dev] zpt and encoding

Jan-Wijbrand Kolman jw at infrae.com
Thu Sep 11 16:36:20 CEST 2003


Marc,



Marc Petitmermet wrote:
> original:
> <td tal:condition="python:key!='reference_type'" 
> tal:content="python:record[key]">record[key]</td>
> 
> The problem is that the data in the database is utf-8 encoded. With the 
> above code I get displayed on the web page "f&#xFC;r" instead of "für".


Does adding "structure" to the tal:content help? Like so:

<td tal:condition="python:key!='reference_type'"
   tal:content="structure python:record[key]">record[key]</td>


HTH
regards,
jw



-- 
Jan-Wijbrand Kolman
jw at infrae.com




More information about the silva-dev mailing list