Python Tips: ValueError: unknown locale: UTF-8

Put below two lines into ~/.bash_profile

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

In terminal, run the below command (or restart the user session)

source ~/.bash_profile

Published by

Sreejith

A strong believer of: 1. Knowledge is power 2. Progress comes from proper application of knowledge 3. Reverent attains wisdom 4. For one's own salvation, and for the welfare of the world

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s