In OS X Lion, LANG is not set to UTF-8, how to fix it?

后端 未结 5 1444
离开以前
离开以前 2020-11-28 17:25

I try to setup postgress in OS X Lion, and find that is not correctly setup the LOCALE environment var.

This is what is set:

LANG=
LC_COLLATE=\"C\"
L         


        
5条回答
  •  悲哀的现实
    2020-11-28 18:26

    I had this issue with MacOS High Sierria.

    You can set up locale as well as language to UTF-8 format using below command :

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

    Now in order to check whether locale environment is updated use below command :

    Locale
    

提交回复
热议问题