Not decode cp1251 symbol to unicode in Satchmo-0.9_pre-py2.5.egg\l10n\utils.py

Create issue
Issue #798 resolved
Former user created an issue

{{{ Traceback: File "C:\Python25\Lib\site-packages\django\core\handlers\base.py" in get_response 92. response = callback(request, *callback_args, callback_kwargs) File "C:\Python25\lib\site-packages\django\views\decorators\cache.py" in _wrapped_view_func 44. response = view_func(request, *args, kwargs) File "c:\python25\lib\site-packages\Satchmo-0.9_pre-py2.5.egg\payment\modules\autosuccess\views.py" in one_step 34. shipping="", discount="") File "c:\python25\lib\site-packages\Satchmo-0.9_pre-py2.5.egg\payment\utils.py" in pay_ship_save 73. update_orderitems(new_order, cart, update=update) File "c:\python25\lib\site-packages\Satchmo-0.9_pre-py2.5.egg\payment\utils.py" in update_orderitems 149. new_order.recalculate_total() File "C:\Python25\lib\site-packages\satchmo-0.9_pre-py2.5.egg\satchmo_store\shop\models.py" in recalculate_total 812. self.force_recalculate_total(save=save) File "C:\Python25\lib\site-packages\satchmo-0.9_pre-py2.5.egg\satchmo_store\shop\models.py" in force_recalculate_total 896. moneyfmt(item_sub_total), File "C:\Python25\lib\site-packages\satchmo-0.9_pre-py2.5.egg\l10n\utils.py" in moneyfmt 158. s = s + (separated and ' ' or '') + curr

Exception Type: UnicodeDecodeError at /checkout/auto/ Exception Value: 'ascii' codec can't decode byte 0xa0 in position 2: ordinal not in range(128) }}}

Reported by vovka-s86

Comments (4)

  1. Former user Account Deleted

    in line 63BR - thousands_sep = conv[monetary and 'mon_thousands_sep' or 'thousands_sep']BR + thousands_sep = conv[monetary and 'mon_thousands_sep' or 'thousands_sep'].decode('cp1251')

  2. Former user Account Deleted

    in line 63 - thousands_sep = conv[monetary and 'mon_thousands_sep' or 'thousands_sep'] + thousands_sep = conv[monetary and 'mon_thousands_sep' or 'thousands_sep'].decode('cp1251')

  3. Log in to comment