Answer the question
In order to leave comments, you need to log in
Why does the php interpreter not accept Cyrillic?
I am writing a simple web server in C#, as my college project, and I ran into such a problem that when my software sends a file to the php interpreter with Cyrillic, it displays different crocuses for me if I tell it that the file is on the path where there is Cyrillic , then it refuses to work with this file. How can this problem be solved?
Answer the question
In order to leave comments, you need to log in
Before you write web servers in C#, you need to learn how to describe problems in a language other than housewives.
There is no such encoding - "Cyrillic". There is a specific encoding that needs to be specified in the question.
There is no such command in C# - "send to interpreter". There is a specific command or action that needs to be described in the question.
There is no such command - "say what is on the way". There is a specific code that needs to be given in the question.
PHP is not a visitor to a restaurant to "refuse". This program. Which either works or gives an error message . which the programmer must read. Or at least, if you didn’t understand a single word in it, then carefully copy it into your question.
In general, PHP works great with any encodings that are used to display Russian letters, even with those hellish crutches that have been used in Microsoft Windows since the middle of the end of the last century to this day.
In order to make sure that PHP works fine with Russian letters, you need to create a test.php script
<?php
header('Content-Type: text/html; charset=utf-8');
echo hex2bin('d0bfd180d0b8d0b2d0b5d182');
// текст UTF закодировн в hex чтобы избежать влияния кривых ручек тестировщика/выкрутасов Виндоус
php -S localhost:8081
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question