No post https://pctoledo.org/forum/viewto ... 45&t=19631 descobri a solução para o problema de acentuação que gerava erros na minha classe encripta, mas obtive um efeito colateral.
A solução foi inserir no meu código essas instruções abaixo:
O detalhe, ao aplicar essas instruções no meu sistema as telas do ( HMG 3.4.4 Unicode ) obtive erros de acentuação na GUI do sistema, to meio perdido, vou continuar pesquisando ...
O problema É COM CERTEZA NO CODEPAGE, pois com apenas esses comandos já volto a ter os acentos normalmente
hb_StrToUtf8( sData, sCodepageIN ) Translation sData of sCodepageIN in utf8
hb_Utf8ToStr( sData, sCodepageOUT ) Translation sData from utf8 to sCodepageOUT
hb_Utf8Len( sData ) This and the following functions are analogs of
hb_utf8Chr( n ) the standard string functions Len(),
hb_utf8Asc( sData ) Chr(), Asc (), etc., but for rows in a
hb_utf8Substr( sData, n1, n2 ) utf8 encoding. As it is known, in utf8
hb_utf8Left( sData, n1 ) one character may be encoded with more
hb_utf8Right( sData, n1 ) than one byte. These functions operate with
hb_utf8Stuff( sData, n1, n2, cNew ) the number of symbols rather than bytes.
hb_utf8Peek( sData, n1 )
hb_utf8Poke( sData, n1, n )
2) A HMG 3.4.4 Unicode usa a página de código UTF8 como default (então ai estava o erro ao setar PT850)
3) Você precisa tomar cuidado com as funções que tratam strings CHR / ASC entre outras ... elas tem correspondentes em Unicode - hb_utf8Chr( n ) / hb_utf8Asc()