Page 4 of 4

Re: You can embed a HMG RSS? / Se puede incrustar un RSS en

Posted: Sat Jun 15, 2013 1:36 am
by Pablo César
andyglezl wrote:cXML_ansi := HB_Translate( cXML_utf8 , "UTF8" , "ESWIN" )

Y si, hay 2 links que están en Portugues que son los ejemplos de Daniel. Lo que queria yo,
era utilizarlos en español.
No creo que esto sea posible. Si una traduccion del portugés para el español, pero eso seria muy dificil, es como alguna rutina del Google Translator... Tendrás que utiliza al invés de ESWIN para PT-BR o PT850 algo asi.

---

I do not think this is possible. I think is a translation from porutuguese to spanish , but that would be very difficult, it's like a routine of Google Translator ... You'll have to use PT850 or PT-BR (something like that) in place of ESWIN.

Re: You can embed a HMG RSS? / Se puede incrustar un RSS en

Posted: Sat Jun 15, 2013 3:58 am
by srvet_claudio
andyglezl wrote: Lo de los acentos en español quedaron resueltos con la función que me indicó Daniel

cXML_ansi := HB_Translate( cXML_utf8 , "UTF8" , "ESWIN" )

Y si, hay 2 links que están en Portugues que son los ejemplos de Daniel. Lo que queria yo,
era utilizarlos en español.
La función HB_Translate() es solo un traductor de caracteres, por ejemplo si con el código de pagina en español el carácter ZZZ tiene el valor ANSI XXX y en el código de pagina en portugués tiene el valor YYY, cada vez que encuentra en el texto el valor XXX lo cambia por el valor YYY.

--------------
The HB_Translate function () is only a translator of characters, for example if the ZZZ character in code page in Spanish is set to ANSI value XXX and in the Portuguese code page is set to value YYY, whenever found in the text the value XXX is changes by the value YYY.

--------------
Ver el ejemplo/See example (HMG.3.1.3):

Code: Select all

Local c := "Á"   // <-- caracter en Unicode (Notepad++ --> Encoding in UTF8)

Local cANSI := ""
REQUEST HB_CODEPAGE_ESWIN
REQUEST HB_CODEPAGE_PT850

HB_SetCodePage("PT850")
cANSI := HB_Translate(c, "UTF8", "PT850")
MsgInfo (cANSI + str(ASC(cANSI)))

HB_SetCodePage("ESWIN")
cANSI := HB_Translate(c, "UTF8", "ESWIN")
MsgInfo (cANSI + str(ASC(cANSI)))

Re: You can embed a HMG RSS? / Se puede incrustar un RSS en

Posted: Wed Aug 06, 2014 1:31 am
by andyglezl
Hola de nuevo

Hoy hice algunas pruebas compilando el mismo programa con diferentes versiones de
HMG y tengo algunos problemas con algo que ya funcionaba en 3.1.5 y anteriores.

Es el mismo link de donde tomo los datos: http://news.google.com/news?pz=1&cf=all ... output=rss

El caso está en que ya incluí algo que solo funciona en 3.3.1 y no quiero deshacerlo
y regresarme a 3.1.5.

Hubo algunos cambios en lo siguiente ?
----------------------------------------------------------------------------------------
Hello again

Today I did some tests compiling the same program with different versions of
HMG and I have some problems with something that already worked in 3.1.5 and earlier.

It's the same link where I take the data: http://news.google.com/news?pz=1&cf=all ... output=rss

The fact is that I included as something that only works on 3.3.1 and do not want to undo
up and go back to 3.1.5.

There were some changes in the following?
----------------------------------------------------------------------------------------

#require "hbtip"
#include "tip.ch"
#include "hbxml.ch"


Gracias