I'm using locale.currency(100)
to display currency [works fine - gives back '$100.00'
], but I can't get it to display Israeli currency...
I tried playing with locale.setlocale(locale.LC_TIME, 'il_IL.UTF-8')
but that just prompted Error: unsupported locale setting
. (same goes for trying other countries - 'ru_RU.UTF-8'
)
As @jdehesa commented, the right locale for Israel should be 'he_IL.UTF-8'
instead of 'il_IL.UTF-8'
. Checked that too, and got the same error.
I have no idea where to look, as the docs and this SO answer didn't help.
My machine's Locale:
C:\> systeminfo | findstr "Locale"
System Locale: he;Hebrew
Input Locale: en-us;English (United States)
BTW, I'm using Python3 on Windows 8 (tried checking it also on ideone) for both Python 2&3