in reply to Printing portugese text in Excel

Just remove the call to decode:
$worksheet->write($rowCount, $colCount, $Field, $gFmtBold);

I also had to remove the following lines from the script to test it (they're irrelevant to the question, anyway):

use Locale::Msgcat; use Number::Localization; use Presentation;

And I had to prepend

use Excel::Writer::XLSX;

See Short, Self Contained, Correct Example on how to help us to help you.

See the module's documentation on the details:

If the data is in UTF-8 format then Excel::Writer::XLSX will handle it automatically.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Printing portugese text in Excel
by raja567 (Novice) on Apr 20, 2015 at 10:10 UTC

    Hi, I tried that and it is still showing "ID Servio Vantive" in excel sheet.

      Are you sure your program is saved as UTF-8? It works for me.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

        Yes, I have saved in UFT-8 encoding format only, Actually, the excel sheet will be getting created in unxi box,later I'm importing it to my desktop and saving it using UFT 8 encoding, but it is still not working :(