/** * Will convert the input strings special chars (all above 127) to entities. * The string is expected to be encoded in UTF-8 * This function is used to create strings that can be used in the Click Menu * (Context Sensitive Menus). The reason is that the values that are dynamically * written into the <div> layer is decoded as iso-8859-1 no matter what charset * is used in the document otherwise (only MSIE, Mozilla is OK). * So by converting we by-pass this problem. * * @param string $str Input string * @return string Output string */ public function makeEntities($str) { // Convert string back again, but using the full entity conversion: return $this->csConvObj->utf8_to_entities($str); }
/** * Will convert the input strings special chars (all above 127) to entities. * The string is expected to be encoded in UTF-8 * This function is used to create strings that can be used in the Click Menu * (Context Sensitive Menus). The reason is that the values that are dynamically * written into the <div> layer is decoded as iso-8859-1 no matter what charset * is used in the document otherwise (only MSIE, Mozilla is OK). * So by converting we by-pass this problem. * * @param string $str Input string * @return string Output string * @deprecated since TYPO3 v8, will be removed in TYPO3 v9 */ public function makeEntities($str) { GeneralUtility::logDeprecatedFunction(); // Convert string back again, but using the full entity conversion: return $this->csConvObj->utf8_to_entities($str); }