DSM

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • unicode problem

    1 answers - 1139 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    I've created a folder a put some dtml-methods, External python scripts and a Formulator Forms. It had worked fine till I put the Form's xml page the following line:
    <action>int_bev_feldolgoz</action>
    int_bev_feldolgoz is dtml method and at the moment only shows the value of REQUEST
    Having seen the result of this method I wanted to back to edit the content of the folder, but I couldn't continue. The following error message was displayed:
    Error Type: UnicodeEncodeError
    Error Value: 'latin-1' codec can't encode character u'\u0170' in position 22895: ordinal not in range(256)
    What shall I do? I don't want start it from scratch. All dtml-method with unicode characters worked smoothly. (Debian Sarge Zope2.7)
    thanx,
    Peter
    4000 Ft+Afa uti a markodat! Minden uj, altalad beszervezett elofizetoert ennyit irunk
    jova ADSL elofizetesed dijabol. Regisztralj!
    Reszletek: www.freestart.hu
    Zope maillist - Zope (AT) zope (DOT) org
    ** No cross posts or HTML encoding! **
    (Related lists -
    )
  • No.1 | | 1480 bytes | |

    Wed, Nov 30, 2005 at 02:12:07PM +0100, abraham.peter (AT) freestart (DOT) hu wrote:

    I've created a folder a put some dtml-methods, External python
    scripts and a Formulator Forms. It had worked fine till I put the
    Form's xml page the following line:
    <action>int_bev_feldolgoz</action>
    int_bev_feldolgoz is dtml method and at the moment only shows the
    value of REQUEST
    Having seen the result of this method I wanted to back to edit the
    content of the folder, but I couldn't continue. The following error
    message was displayed:
    Error Type: UnicodeEncodeError
    Error Value: 'latin-1' codec can't encode character u'\u0170' in position 22895: ordinal not in range(256)

    What shall I do? I don't want start it from scratch. All dtml-method
    with unicode characters worked smoothly. (Debian Sarge Zope2.7)

    I had an issue with unicode a few weeks back and could solve it thanks
    to the list, so it might help you to review this thread:

    Partly that thread is about (Re)StructuredText, but don't let yourself
    be thrown off by that.

    You may want to check if your Python scripts do some explicit unicode
    encoding, like this:

    sometext = unicode(some_other_text,'iso-8859-1').encode('utf-8')

    And you may have to change your Python's default encoding or have a
    look at etc/zope.conf in your zope instance.

    HTH,

Re: unicode problem


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "DSM"

EMSDN.COM