in reply to Re^3: Slovenian characters problem
in thread Slovenian characters problem
Thanks for the "code" suggestion.
I forgot to delete the contents of line 16 in the script before posting it. I apologize; without replacing [0] with 1 it wouldn't even write lines read from array.
My text editor is set to "Central European (cp1250)": when I open the script for example in Notepad++, MS Word and MS Excel the Slovenian characters are written correct.
I tried what you suggested:
$SheetOut->write(0,0,"Čč"); $SheetOut->write(1,0,encode("cp1250",$Test[0]->{Col1}));
In Xls file the first line is written correct, the second one not.
Why are characters defined as string (line 1) correct and those read from array (line 2) not correct?
Are there two or more different possible # characters in#!/usr/bin/perl and by Murphy I use the wrong one or something? Just kidding. :/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Slovenian characters problem
by graff (Chancellor) on Aug 17, 2010 at 22:03 UTC | |
by JackVanRamars (Novice) on Aug 18, 2010 at 05:32 UTC | |
by graff (Chancellor) on Aug 18, 2010 at 08:04 UTC | |
by JackVanRamars (Novice) on Aug 18, 2010 at 10:58 UTC | |
by JackVanRamars (Novice) on Aug 18, 2010 at 11:50 UTC |