Site encoding 1251

Locked
User avatar
singletone
Posts: 3
Joined: Sat 9. Oct 2021, 20:55

Site encoding 1251

Post by singletone »

Good afternoon!
There is an old site with charset=windows-1251.

I add a .htaccess entry:
AddDefaultCharset WINDOWS-1251
Nothing changes. The encoding remains UTF-8
I add php_value default_charset cp1251 - server error 500
Please help me.
Thanks!
P.S.
After
php_value default_charset cp1251
in logs:
Invalid command 'PHP_VALUE', perhaps misspelled or defined by a module not included in the server configuration
User avatar
Tobi
Community Moderator
Posts: 2813
Joined: Thu 5. Jan 2017, 13:24

Re: Site encoding 1251

Post by Tobi »

Just try

Code: Select all


default_charset = “cp1251“

There is no need for the word „php_value“.
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
singletone
Posts: 3
Joined: Sat 9. Oct 2021, 20:55

Re: Site encoding 1251

Post by singletone »

Hi!
Tnx, but it doesn't work:
log:
.htaccess: Invalid command 'default_charset', perhaps misspelled or defined by a module not included in the server configuration
User avatar
singletone
Posts: 3
Joined: Sat 9. Oct 2021, 20:55

Re: Site encoding 1251

Post by singletone »

I added the line
default_charset = "windows-1251"
to the settings
"Additional PHP settings" in "Edit user".

Everything worked.
Locked