in reply to Re: WriteExcel unicode question
in thread WriteExcel unicode question
it makes NO difference. I even tried$cellvalue2=encode("iso08859-7",$cellvalue2);
which gave again junk(though more chinese-looking junk) I read these strings byif($Cell->{Code} eq 'ucs2'){$cellvalue2=Encode::decode ('UCS-2BE',$cel +lvalue2);
Like I said above, it makes no difference if you try to post-process the $cellvalue2 with encode("iso-8859-7",$cellvalue2);$oexcel=new Spreadsheet::ParseExcel;#version 0.32 from #activestate $oBook=$oexcel->Parse($myfile); for my ($iSheet=0; $iSheet<$oBook->{SheetCount};$iSheet++;} $oWkS=$oBook->{Worksehhet}[$iSheet]; for (my $iR=$oWkS=>{MinRow};defined $oWkS->{MaxRow|&& $iR <=$oWkS->{Ma +xRow};$iR++;){ for(my $iC=$oWkS->{MinCol};defined $oWkS->{MaxCol &&$iC <$oWkS->{MaxCo +l}; $iC++; my $cellvalue2=''; my $oWkC=$oWkS->{Cells}[$iR][$iC]; if($oWk){$cellvalue2=$oWkC->Value; $cellvalue2=$oWkC->{'Val'} if ($cel +lvalue2 eq 'GENERAL';} #and it IS GENERAL ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: WriteExcel unicode question
by jmcnamara (Monsignor) on Oct 15, 2009 at 10:50 UTC | |
|
Re^3: WriteExcel unicode question
by almut (Canon) on Oct 15, 2009 at 10:36 UTC | |
by demis (Novice) on Oct 15, 2009 at 10:49 UTC | |
by almut (Canon) on Oct 15, 2009 at 11:04 UTC |