Message95887
In 2.7, I get:
$ ./python.exe
Python 2.7a0 (trunk:76501, Nov 24 2009, 14:57:21)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, "cs_CZ.UTF-8")
'cs_CZ.UTF-8'
>>> from decimal import Decimal
>>> s = format(Decimal("-1.5"), ' 019.18n')
>>> s
'-0 000 000 000 001,5'
>>> len(s)
20
>>> s = format(Decimal("-1.5"), u' 019.18n')
>>> s
u'-0 000 000 000 001,5'
>>> len(s)
20
>>>
Could you give more details on the UnicodeDecodeError you get? Any
traceback? |
|
Date |
User |
Action |
Args |
2009-12-02 00:05:58 | eric.smith | set | recipients:
+ eric.smith, mark.dickinson, mrabarnett, r.david.murray, skrah |
2009-12-02 00:05:58 | eric.smith | set | messageid: <1259712358.42.0.0697426569335.issue7327@psf.upfronthosting.co.za> |
2009-12-02 00:05:57 | eric.smith | link | issue7327 messages |
2009-12-02 00:05:56 | eric.smith | create | |
|