FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour createobject and greek characters
Posts: 15
Joined: Thu Sep 21, 2006 05:01 PM
createobject and greek characters
Posted: Fri Aug 31, 2012 08:26 AM

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.

Posts: 15
Joined: Thu Sep 21, 2006 05:01 PM
Re: createobject and greek characters
Posted: Tue Mar 12, 2013 09:48 AM

Is there any news for this topic?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: createobject and greek characters
Posted: Tue Mar 12, 2013 09:54 AM

Could someone with Excel installed try this ?

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: createobject and greek characters
Posted: Tue Mar 12, 2013 01:01 PM

Jim,

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

EMG

Posts: 15
Joined: Thu Sep 21, 2006 05:01 PM
Re: createobject and greek characters
Posted: Tue Mar 12, 2013 01:46 PM

Enrico
The same problem occures when I open an xml file using CreateObject("Microsoft.XMLDOM"). I cannot read Greek characters.

Posts: 15
Joined: Thu Sep 21, 2006 05:01 PM
Re: createobject and greek characters
Posted: Thu Jul 04, 2013 06:23 AM

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?

Continue the discussion