⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

alternate option for mb_convert_encoding



vaibhav

vaibhav
  • profile picture
  • Member

Posted 02 August 2013 - 09:47 AM

I get the following error while using the export functionality 

 

Fatal error: Call to undefined function mb_convert_encoding() in

 

application/libraries/Grocery_CRUD.php on line 1600

 

This is the actual code in the library

$string_to_export = "\xFF\xFE" .mb_convert_encoding($string_to_export, 'UTF-16LE', 'UTF-8');

Can any one tell an alternate option for the same line of code.

 

Thank you


davidoster

davidoster
  • profile picture
  • Member

Posted 02 August 2013 - 11:44 AM

This seems to be a bug.

I will let [member=web-johnny] about it.


arronlee

arronlee
  • profile picture
  • Member

Posted 13 October 2015 - 09:34 AM

I was wondering whether the PDF conversion sdk allows pdf exproting process. Any sugegstion will be appreciated. Thanks in adcance.          

 

 

 

Best regards, 

Pan


Nicodemus Karisa

Nicodemus Karisa
  • profile picture
  • Member

Posted 04 January 2019 - 19:16 PM

Use this instead: htmlspecialchars_decode(utf8_decode(htmlentities($string_to_export, ENT_COMPAT, 'utf-8', false))); It worked for me in place of "\xFF\xFE" .mb_convert_encoding($string_to_export, 'UTF-16LE', 'UTF-8');