cartridge icon indicating copy to clipboard operation
cartridge copied to clipboard

Currency not displayed correctly on Windows.

Open yoshpe opened this issue 11 years ago • 2 comments

I use Windows and the Format is set to "English (United States)", but the currency symbol is set ₪. but in shop_tags.py the value is not encoded currently. Suggested fix:

value = str(value, encoding=locale.getdefaultlocale()[1])

yoshpe avatar May 04 '14 15:05 yoshpe

What do you have SHOP_CURRENCY_LOCALE set to?

molokov avatar May 04 '14 21:05 molokov

It is not set, so Cartridge uses system locale. The symbol is correct but in order to display it correctly the value must be encoded with an encoding that has the correct symbol.. On May 5, 2014 12:42 AM, "molokov" [email protected] wrote:

What do you have SHOP_CURRENCY_LOCALE set to?

— Reply to this email directly or view it on GitHubhttps://github.com/stephenmcd/cartridge/issues/188#issuecomment-42146173 .

yoshpe avatar May 04 '14 23:05 yoshpe