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.
createobject and greek characters
Re: createobject and greek characters
Is there any news for this topic?
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: createobject and greek characters
Could someone with Excel installed try this ?
We don't use MS Office anymore since years...
We don't use MS Office anymore since years...
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: createobject and greek characters
Jim,
it's probably your editor that lost the unicode characters. Please note that [x]Harbour won't compile unicode source code anyway.
EMG
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
Enrico
The same problem occures when I open an xml file using CreateObject("Microsoft.XMLDOM"). I cannot read Greek characters.
The same problem occures when I open an xml file using CreateObject("Microsoft.XMLDOM"). I cannot read Greek characters.
Re: createobject and greek characters
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?
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?