W
W
warobushek2014-05-27 23:56:53
PHP
warobushek, 2014-05-27 23:56:53

PHPexcel returns empty Russian text values. Cause in php_zip?

Gentlemen developers, professionals, internet users!
Reading xlsx file.
Some strange problem:
- if you parse the price file directly unloaded from 1C, then it considers the cells with Russian text to be empty.
- if you first open it on a local computer, save it and try to parse it - the Russian text is readable.

Here are some of the php settings

mbstring.func_overload = 0
mbstring.internal_encoding = cp1251
Have you come across this, what could it be? How to treat?

I also have an assumption that it is worth rebuilding php with php_zip support, as it is written here https://github.com/PHPOffice/PHPExcel, the size of the locally resaved file is larger than that obtained from 1C.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gillbeits, 2014-05-28
@warobushek

Correct me if I'm wrong, but does 1c give prices in windows-1251? Then it is better to do encode in utf-8 at the stage of parsing such a price and insert this text into the cell.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question