HMG controls and ANSI / UTF8 strings
Posted: Fri Oct 14, 2016 12:49 pm
Hi
It seems HMG controls automatically convert strings ANSI to Unicode
If so, this behavior seem is not convenient to me
I don't like do frequently this (and converse) in prgs.
My string are not always uniform in format, sometime ANSI, sometime Unicode.
So SETtingCODEPAGE TO <one or auther> is not convenient for me. Because of this, working with IDE ANSI too don't solves my problem
Does may be a possibility that HMG controls treats strings as-is basis; if ANSI, ANSI, if Unicode, Unicode
(like modern text editors)
TIA
Code: Select all
frmRectText.ebxText.Value := cInpText
MsgDebug( HMG_IsUTF8( cInpText ), HMG_IsUTF8(frmRectText.ebxText.Value ) ) // .F., .T:

If so, this behavior seem is not convenient to me

Code: Select all
IF !HMG_IsUTF8( cInpText )
cInpText := HMG_ANSI_TO_UNICODE( cInpText )
ENDIF
My string are not always uniform in format, sometime ANSI, sometime Unicode.
So SETtingCODEPAGE TO <one or auther> is not convenient for me. Because of this, working with IDE ANSI too don't solves my problem

Does may be a possibility that HMG controls treats strings as-is basis; if ANSI, ANSI, if Unicode, Unicode


TIA