You are here

public static function PHPExcel_Shared_String::SYLKtoUTF8 in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php \PHPExcel_Shared_String::SYLKtoUTF8()

* Convert SYLK encoded string to UTF-8 * *

Parameters

string $pValue: * @return string UTF-8 encoded string

2 calls to PHPExcel_Shared_String::SYLKtoUTF8()
PHPExcel_Reader_SYLK::listWorksheetInfo in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/SYLK.php
* Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * *
PHPExcel_Reader_SYLK::loadIntoExisting in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/SYLK.php
* Loads PHPExcel from file into PHPExcel instance * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php, line 783

Class

PHPExcel_Shared_String
PHPExcel_Shared_String

Code

public static function SYLKtoUTF8($pValue = '') {

  // If there is no escape character in the string there is nothing to do
  if (strpos($pValue, '') === false) {
    return $pValue;
  }
  foreach (self::$_SYLKCharacters as $k => $v) {
    $pValue = str_replace($k, $v, $pValue);
  }
  return $pValue;
}