Convert UTF8 to EN

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Convert UTF8 to EN

Post by Georg_BA »

Good day
I need to help convert text from UTF8 to EN
I'm trapped for a couple of hours and I can not get to the end

Example: INPUT -> Dámske šľapky - žabky
OUTPUT -> Damske slapky - zabky

I have tested hb functions

REQUEST HB_CODEPAGE_SK852
REQUEST HB_CODEPAGE_EN
REQUEST HB_CODEPAGE_UTF8

HB_SETCODEPAGE('EN')

text:='Dámske šľapky - žabky'
Hb_UTF8ToStr( text)
hb_translate(text,'UTF8', 'EN')

the result D mske ǖapky - §abky
eventually Dmske apky - abky

I guess I have not set REQUEST correctly
thanks in advance
Post Reply