S
S
siroper2021-04-30 00:21:15
Character encoding
siroper, 2021-04-30 00:21:15

How to deal with php/ispmanager encoding?

Hello. An incomprehensible problem for me, defying logic...

In the ISP manager, in the PHP settings it says:
608b22795457e740300472.jpeg
htaccess is written (similarly in the config for the domain):
AddDefaultCharset UTF-8 I create a test.js

file on the site , I write to it: direct link https://site.ru/test.js , I see this: But if I rename the file to .php - everything is fine, the Russian text is displayed there as expected .... The encoding of the test.js file is also UTF-8, respectively Where looking for a problem? // Привет
// Привет


Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nokimaro, 2021-04-30
@nokimaro

JS files in ispmanager are given through nginx directly, and not through apache
, so turn the nginx settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question