use Unicode::Map(); use Spreadsheet::WriteExcel; use Win32::OLE::Const 'Microsoft Word' my $workbook = Spreadsheet::WriteExcel->new("word.xls"); my $worksheet = $workbook->addworksheet(); my $word = Win32::OLE->new('Word.Application', 'Quit'); my $map = Unicode::Map->new("ISO-8859-6"); my $utf16 = $map->to_unicode($doc->Words->Item(1)->Text); $worksheet->write(0, 0, $utf16, $format2);
In reply to writing Arabic text in Excel by pg09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |