0

trying locale.setlocale('locale.LC_ALL, 'en_IN') and it's not working throwing error locale.Error: unsupported locale setting tried using utf-8 encoding too, all suggestions are welcomed I am using python 2.7.

prk190
  • 1
  • 1
  • Possible duplicate of [Python locale error: unsupported locale setting](https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting) – Georgy Nov 27 '19 at 08:53

1 Answers1

0

You can only set a locale in Python if your OS has this locale available. So you'd have to update your locales on the OS level. See Python locale error: unsupported locale setting for a description how to do this in Linux, for example.

Kilian Foth
  • 13,904
  • 5
  • 39
  • 57