You are here

protected static function PHPExcel_Reader_Excel2003XML::_convertStringEncoding in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php \PHPExcel_Reader_Excel2003XML::_convertStringEncoding()
3 calls to PHPExcel_Reader_Excel2003XML::_convertStringEncoding()
PHPExcel_Reader_Excel2003XML::listWorksheetNames in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php
* Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object * *
PHPExcel_Reader_Excel2003XML::loadIntoExisting in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php
* Loads PHPExcel from file into PHPExcel instance * *
PHPExcel_Reader_Excel2003XML::_parseRichText in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php, line 793

Class

PHPExcel_Reader_Excel2003XML
PHPExcel_Reader_Excel2003XML

Code

protected static function _convertStringEncoding($string, $charset) {
  if ($charset != 'UTF-8') {
    return PHPExcel_Shared_String::ConvertEncoding($string, 'UTF-8', $charset);
  }
  return $string;
}