I am trying to write french accented characters é è ê in Excel worksheet using my perl script , But I am stuck here as I couldnt find a way of writing it !:
My code:
Expand|Select|Wrap|Line Numbers
- use strict;
- use warnings;
- use Win32::OLE qw(in with);
- use Win32::OLE::Const 'Microsoft Excel';
- my $Excel = Win32::OLE->GetActiveObject('Excel.Application')
- or Win32::OLE->new('Excel.Application', 'Quit');
- my $excel_file = 'd:/excelfile.xls';
Expand|Select|Wrap|Line Numbers
- $sheet->Cells($i,8)->{'Value'}="$temp";
Expand|Select|Wrap|Line Numbers
- my $xmlsource3 = "LAX03fr.xml";
- open IN3, "<:utf8", $xmlsource3 or die "Can't Read Source file $xmlsource3: $!\n";
Also i printed the $temp in the output window and it shows the accented characters correctly , only when it writes to excel i cannot see the accented characters and instead I see ,something like this in my excel ! ---> Unité
How can I solve this problem ?
Please help me guys , any help would be greatly appreciated.
thanks a lot, in advance,
shintu