Jump to content

alternate option for mb_convert_encoding


  • Please log in to reply
3 replies to this topic

#1 vaibhav



  • Members
  • PipPip
  • 10 posts

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

#2 davidoster


    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 02 August 2013 - 11:44 AM

This seems to be a bug.

I will let web-johnny about it.



rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---



David Oster aka George Pasparakis,

#3 arronlee



  • Members
  • Pip
  • 6 posts

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, 


#4 Nicodemus Karisa

Nicodemus Karisa


  • Members
  • Pip
  • 2 posts

Posted 04 January 2019 - 07: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');

Also tagged with one or more of these keywords: export

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users