V
V
Vasya Surname2015-03-04 13:03:19
PHP
Vasya Surname, 2015-03-04 13:03:19

How to convert .xml file from UTF-8 to cp1251 using php?

The xml file is created on my server in utf-8 and it should be in cp1251 as specified in the version <?xml version="1.0" encoding="cp1251"?> tell me how you can recode the file using php

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2015-03-04
@FanatPHP

<?xml version="1.0" encoding="utf-8"?>
And in this header 1251 is written as windows-1251

D
Dmitry, 2015-03-04
@dnovikoff

iconv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question