Hello,
I try to display ANSI text in a xbpMle.
Unfortunaly characters are displayed incorrect.
SET CHARSET TO ANSI
Below the text and the Hex presentation of the data.
T™L MF120 (54D64C204D46313230)
Notice the second character #D6 (ASCII 214)
This shoud be Ö, but shows "TM" in superscript.
What is my mistake?
xbpMle and ANSI
xbpMle and ANSI
Regards,
Jack Duijf
Jack Duijf
Re: xbpMle and ANSI
have try ..\SOURCE\samples\basics\DRAGDROP\DROP.EXE with TXT Files create by Notepad and can't confirm
only € Sign seem wrong when using

only € Sign seem wrong when using
Code: Select all
oMLE:SetFontCompoundName( "10.Courier" )
greetings by OHR
Jimmy
Jimmy
Re: xbpMle and ANSI
I entered the following into the command window in XDOT.EXE:
Below is the result:
Code: Select all
SET CHARSET TO ANSI
c := HexToStr('54D64C204D46313230')
@ 0,0 dcmultiline c size 300,300 pixel font '12.Arial'
dcread gui fit
The eXpress train is coming - and it has more cars.
Re: xbpMle and ANSI
Hello Roger, Jimmy,
Thank you for the help.
I also made a simple app with just a DCMULTILINE. That worked as expected.
Eventualy, I managed to locate the problem.
I turned out, i called an obsolete ConvToAnsiCp() somewhere deep in my logging routine.
And the string was already Ansi.

Thank you for the help.
I also made a simple app with just a DCMULTILINE. That worked as expected.
Eventualy, I managed to locate the problem.
I turned out, i called an obsolete ConvToAnsiCp() somewhere deep in my logging routine.
And the string was already Ansi.


Regards,
Jack Duijf
Jack Duijf