Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • string encode

    1 answers - 446 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 list
    is there a way to solve the error in case of :
    <code>
    #
    return str(val) #where val is unicode (eg val = u'u')
    </code>
    so, how register(?) all imported modules to convert all
    unicodes to str() with a coder, for eg. encode('cp1251')
    thanks in advance
    -e-
    " L
    22
    http://www.buntatnal.com/
    Tutor maillist - Tutor (AT) python (DOT) org
  • No.1 | | 439 bytes | |

    Tue, 19 Sep 2006, emilia12 (AT) mail (DOT) bg wrote:

    so, how register(?) all imported modules to convert all unicodes to
    str() with a coder, for eg. encode('cp1251')

    Hi Emilia,

    Unfortunately, this isn't so clean: changing the systemwide
    default encoding may cause things to break. See:

    for some discussion on the pitfalls.

    Tutor maillist - Tutor (AT) python (DOT) org

Re: string encode


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

EMSDN.COM