Criei um utilitário, pra auxiliar nas listas de IPTV, cadastrar canais na televisão.
Mas a lista tem que ser em UTF-8.
Como fixo o utilitário para UTF-8? Qual seria a codepage?

Moderador: Moderadores
C:\Users\Itamar>hbmk2 -find utf8
Núcleo Harbour (instalado):
hb_cdpIsUTF8()
hb_StrIsUTF8()
hb_StrToUTF8()
hb_utf8Asc()
hb_utf8At()
hb_utf8Chr()
hb_utf8Left()
hb_utf8Len()
hb_utf8Peek()
hb_utf8Poke()
hb_utf8RAt()
hb_utf8Right()
hb_utf8StrTran()
hb_utf8Stuff()
hb_utf8SubStr()
hb_UTF8ToStr()
hb_UTF8ToStrBox()
HB_CODEPAGE_UTF8()
HB_CODEPAGE_UTF8EX()
addons\hbqt\hbqtcore.hbc (instalado):
__HBQT_SETUTF8()
addons\hbqt\qtcore\hbqtcore.hbc (instalado):
__HBQT_SETUTF8()
2014-05-08 13:42 UTC+0300 Alexander Kresin <alex@belacy.ru>
* source/winapi/hedit.prg
* Added Utf8 support for GET objects
...
2010-12-19 16:45 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* hwgui/include/hwingui.h
* hwgui/source/window.c
+ added internal HWGUI code to emulate Harbour STR API.
It's enabled by default when xHarbour or old Harbour version is used
and UNICODE macro is set during HWGUI compilation.
It means that now also xHarbour users can use HWGUI with UTF8 strings.
Just like for Harbour useres it's enough to compile HWGUI with UNICODE
macro and add at the beginning of executed PRG code:
HWG_SETUTF8()
Please test. If more users will use UNICODE HWGUI builds then there
is bigger chance to keep it alive and updated.
xHarbour users probably do not use HBMK2 build tool from Harbour
which allows to compile HWGUI with any supported C compiler
so to create UNICODE HWGUI libraries they will have to hack
existing make files and add -DUNICODE to C compiler flags.
Maybe someone can create some common method to set C compiler
flags in different make files. Now only Makefile, Makefile.scr
and makefile.bc respects C_USR envvar set by user.
Please also remember that UNICODE HWGUI builds should be
interesting for all Harbour users who want to use any Harbour
CP in their code. It's not only oriented for UTF8 encoding.
Such build can work well with any encoding set by
HB_CDPSELECT( <cCP> ) / SET( _SET_CODEPAGE, <cCP> ) and can
automatically make all necessary translations between HVM CP
and UNICODE.
Usuários vendo este fórum: Google [Bot] e 8 visitantes