When I read a cell which has Korean or Chinese Character Text from
Excel2003
with Win32Ole, whatever the text is, the value of the cell is always
‘???’
My environment is WinXP Sp3, Office2003, Ruby is 1.8.6 (I also test the
1.9.0, it still returns ???)
I use the parseexcel, and it can read the cell content correctly.
I attched the test codes and test file.
In the excel file, there are 2 cells, first cell is Koean Text, 2nd cell
is
Chinese Text.
test.rb is used Win32Ole.
test2.rb is used parseexcel, if you want use this, please:Gem Install
parseexcel
test.xls is the excel file
i want to know how to exit this maillist> Date: Tue, 16 Sep 2008
18:30:56 +0900> From: [email protected]> Subject: Re: [BUG
REPORT] for WIN32OLE: The returning of Reading the Asian Langugae Text
in Excel is always '??? '> To: [email protected]> > Hello
Heesob,> > Thank you very much! You are right, I have just test it.> >
Sorry for my mistake.> > BR> Nan> > 2008/9/16 Heesob P. [email protected]> > > Hi,> >> > 2008/9/16 Wu Nan
<[email protected][email protected]> > >:> > > Hi
All,> > >> > > I think I just found a bug in Win32OLE,> > >> > > When I
read a cell which has Korean or Chinese Character Text from> >
Excel2003> > > with Win32Ole, whatever the text is, the value of the
cell is always> > ‘???’> > >> > > My environment is WinXP Sp3,
Office2003, Ruby is 1.8.6 (I also test the> > > 1.9.0, it still returns
???)> > >> > > I use the parseexcel, and it can read the cell content
correctly.> > >> > > I attched the test codes and test file.> > > In the
excel file, there are 2 cells, first cell is Koean Text, 2nd cell> > is>
Chinese Text.> > >> > > test.rb is used Win32Ole.> > > test2.rb is
used parseexcel, if you want use this, please:Gem Install> > >
parseexcel> > > test.xls is the excel file> > >> > > Thanks for alex’s
help.> > >> > > BR> > > Nan> > >> > That is not a bug.> >> > You must
use WIN32OLE.codepage in case of the mixed character set handling:> >
Here is a working code for my Korean WinXP SP3 based on your test.rb:>