PHP rtf lite cuts the kirilli



  • Using the library https://github.com/phprtflite/PHPRtfLite to create a rtf file. Example of code:

    $rtf = new PHPRtfLite();
    $section = $rtf->addSection();
    

    $table = $section->addTable();
    $table->addRows(2);
    $table->addColumnsList(array(4,4,3,3,3));

    $cell = $table->getCell(1, 1);
    $cell->setTextAlignment(PHPRtfLite_Table_Cell::TEXT_ALIGN_LEFT);
    $cell->writeText('Фамилия Имя Отчество');
    ...

    But in the paper, that and the rest of the fields are circumcised, you'll be in place. "Фамилия Имя Отчество" issued "Фамилия Им" Help the plug, it's all gone, how do you fix the problem? The file is retained in UTF-8.



  • It wasn't just the editor. Corrected it in php.ini:

    mbstring.func_overload = 0
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2