Converter unicode Ant\u00f4nio para Antônio
Enviado: 07 Ago 2020 10:50
Estou buscando informação em um webservice que retorna Ant\u00f4nio, ja tentei as opções de conversões abaixo e não funcionaram.
Nenhuma retorna o texto certo.
Meu Harbour
Código: Selecionar todos
cStr="Ant\u00f4nio"
? 'Directly : ',HB_TRANSLATE (cStr,"UTF8","PT850")
? 'UTF8toSTR : ',hb_utf8tostr( cStr )
? 'OEMtoANSI + UTF8toSTR: ',hb_oemtoansi( hb_utf8tostr( cStr ) )
? 'ANSItoOEM + UTF8toSTR: ',hb_ansitooem( hb_utf8tostr( cStr ) )
? 'UTF8toSTR + OEMtoANSI: ',hb_utf8tostr( hb_oemtoansi( cStr ) )
? 'UTF8toSTR + ANSItoOEM: ',hb_utf8tostr( hb_ansitooem( cStr ) )
? 'OEMtoANSI : ',hb_oemtoansi( cStr )
? 'ANSItoOEM : ',hb_ansitooem( cStr )
Meu Harbour
Alguma idéia?Harbour 3.2.0dev (r1502201040)
Copyright (c) 1999-2015, http://harbour-project.org/
Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r1502201040)
Compiler: MinGW GNU C 4.6.1 (32-bit)
Platform: Windows 7 6.1.7601 Service Pack 1
PCode version: 0.3
ChangeLog last entry: 2015-02-20 11:40 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
ChangeLog ID: 350e2f3890c9e3f66c52a809e8843645b9d816f1
Built on: Feb 21 2015 02:40:34
Build options: (Clipper 5.3b) (Clipper 5.x undoc)
---------------------------