View Single Post
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 12-02-2023 , 15:29   Re: ??? instead of Cyrillic letters on debian after SQL_SetCharset
Reply With Quote #5

Quote:
Originally Posted by DJEarthQuake View Post
One MUST install matching LOCALES.
Could you please instruct on how to do that? Because in my /etc/locale.gen file I have uncommented these lines
PHP Code:
en_US.UTF-8 UTF-8
ru_RU
.UTF-8 UTF-
When I enter locale-gen in the terminal, I get
PHP Code:
Generating locales (this might take a while)...
  
en_US.UTF-8... done
  ru_RU
.UTF-8... done
Generation complete

I also set locale using systemd
PHP Code:
localectl set-locale LANG=en_US.UTF-
But it did not helped. I also can see that on my local machine locale prints
PHP Code:
LANG=C
LC_CTYPE
="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-
But on remote one I get
PHP Code:
LANG=C
LANGUAGE
=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL
Does this mean that locale is not installed?

Last edited by damage220; 12-02-2023 at 15:31.
damage220 is offline