Page 1 of 1

createobject and greek characters

Posted: Fri Aug 31, 2012 8:26 am
by JimTheo
When I use an external object using createobject() or ActiveX I cannot read or write greek characters.
For example if you change, into excel2.prg (to samples folder) the line
oSheet:Range( "B2" ):Value = "John"
as
oSheet:Range( "B2" ):Value = "Γιάννης"
// something like oSheet:Range( "B2" ):Value = "Giannis"

The result into B2 is unreadable.
Is there any way to read or write greek caharacters?

I have the same problem when i use CreateObject("Microsoft.XMLDOM") to read xml files with ANSI or utf8 data.

Re: createobject and greek characters

Posted: Tue Mar 12, 2013 9:48 am
by JimTheo
Is there any news for this topic?

Re: createobject and greek characters

Posted: Tue Mar 12, 2013 9:54 am
by Antonio Linares
Could someone with Excel installed try this ?

We don't use MS Office anymore since years...

Re: createobject and greek characters

Posted: Tue Mar 12, 2013 1:01 pm
by Enrico Maria Giordano
Jim,

it's probably your editor that lost the unicode characters. Please note that [x]Harbour won't compile unicode source code anyway.

EMG

Re: createobject and greek characters

Posted: Tue Mar 12, 2013 1:46 pm
by JimTheo
Enrico
The same problem occures when I open an xml file using CreateObject("Microsoft.XMLDOM"). I cannot read Greek characters.

Re: createobject and greek characters

Posted: Thu Jul 04, 2013 6:23 am
by JimTheo
Finally I used the following statements.
REQUEST HB_CODEPAGE_ELWIN
hb_setcodepage('ELWIN')

But i need to change codepage to any function i use. Is there any way to set it public to program?