Re: Umlauteproblem

Ralf Lüdicke <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo!

Vladislav Vorobiev schrieb:
> Am 5. Februar 2009 19:27 schrieb Andreas Jung <[email protected]>:
> 
> Ja das ist schon so ...
> 
> Ich habe Ralf so verstanden dass er beim
> 
> print ['À']
> ein 'À' erwartet und nicht '\xe4' und ich meine ein Zope vor 2.8 wÌrde
> auch ein 'À' liefern. Hab aber keins zum testen hier.
> 
Bei mir funktionierte meine Vergehensweise (siehe weiter unten) bis mind. Zope
2.9.9. Ich mache dabei nichts anderes, wie in den Zope-Büchern beschrieben.
Das mit dem "print / return printed" war nur so als TestCase von mir gedacht.

Ansonsten ist alles mit ZPT erstellt. Die Logik steckt weitesgehend in
pythonScripten. UND ALLES passiert TTW!

Also prinzipiell sieht alles so aus. In den ZPT's ist natürlich noch mehr.
Ausserdem ist alles mit ZPT-macros eingebunden:

<menu.zpt>

<div id="topmenu"
      tal:define="menuitems python:here.get_items_top_menu()">&nbsp;
   <tal:block tal:repeat="item menuitems">	
    <a href="#" class="#"
       tal:attributes="href item/absolute_url ;
                       class python:test(item.id == context.id,'aktiv','')"
       tal:content="item/title_or_id">Menu1</a>
     <span class="invis">|</span>
   </tal:block>
 </div>

</menu.zpt>

Dazu nun das Python-Script (In meinen Scripten ist natürlich auch noch mehr
Logik vorhanden, wie Berechtigung, Sortierung  usw... :


<get_items_top_menu>

return container.objectValues('Folder')

</get_items_top_menu>

Aber selbst in dieser absolut einfachen hier gezeigten Konstellation gelingt es
mir auf meinem jetzigen Setup nicht, Umlaute anzuzeigen.

Kann es denn auch an einer Fehlkonfiguration meinerseits liegen? Muß ich
vielleicht was in python 2.4.5 oder Zope 2.10.7 einstellen, was bis heute nicht
norwendig war?

RALF



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.