in reply to Re: writing Arabic text in Excel
in thread writing Arabic text in Excel

Thanks, this helped! The Arabic text gets printed fine, but the English language symbols such as (), [], ..., etc. show up in the inappropriate places. That is, these symbols show up in the left to right format (as in English) rather than right to left (as in Arabic). Following is my code:
use Win32::OLE qw(CP_UTF8); Win32::OLE->Option(CP=>CP_UTF8); use Win32::OLE::Const 'Microsoft Word'; use Spreadsheet::WriteExcel; my $workbook = Spreadsheet::WriteExcel->new("word.xls"); my $worksheet = $workbook->addworksheet(); my $word = Win32::OLE->new('Word.Application', 'Quit'); my $doc = $word->Documents->Open("C:\\file.doc"); my $string = $doc->Words->Item(1)->Text; $worksheet->write(0, 0, $string);

Replies are listed 'Best First'.
Re^3: writing Arabic text in Excel
by vkon (Curate) on Apr 06, 2006 at 21:57 UTC
    I believe your problem is in right-to-left and left-to-right mixed text...
    I can't advice many here, but I believe Word is quite good at this, so it probably deserves respect on this :):):)