Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

problem displaying arab characters from exce

Help
abdess.bk
2012-02-16
2013-05-02
  • abdess.bk
    abdess.bk
    2012-02-16

    Hi everybody;

    First i have to admint that the PHPEXCELREADER is a very interesting and powerful class which is helping me so much so far.

    My problem is with the ARABIC characters in the EXCEL document that i couldn't display properly with PHPEXCELREADER and i wonder if there's any parameter to add or to modify so i can do so.

    The other data are displayed without problem, the issue is only with the ARABIC ones.

    My code is the following

    $data = new Spreadsheet_Excel_Reader();
    
    $data->setOutputEncoding("UTF-8");
    
    $data->read($MyFile);
    
    error_reporting(E_ALL ^ E_NOTICE);
    

    I tried to change

    setOutputEncoding
    

    and to use the constructor with the additionnal paramaters and

    $data->setUTFEncoder('mb')
    

    and

    $data->setUTFEncoder('iconv')
    

    .

    I4ll realy appréciate if you help me with this one.

    Thank you

     
  • hi,

    you have solve the Arabic excel import problem. if yes, share the solution.