Answer the question
In order to leave comments, you need to log in
Bat file how to replace a string in a php file while keeping Russian letters?
Hello!
I have a php (UTF8) file. It needs to replace foo with too.
I make the following code in a bat file
powershell -Command "(gc index.php) -replace '{PARARAM}', 'bar' | Out-File index1.php"
Answer the question
In order to leave comments, you need to log in
if there are php files, it is logical that puff is installed, run the puff script, specify the default utf8 codepage in the settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question