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

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

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

Post 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

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

Post 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)))
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

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

Post 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
Attachments
Dif-3.15-3.31.jpg
Dif-3.15-3.31.jpg (630.16 KiB) Viewed 1957 times
Andrés González López
Desde Guadalajara, Jalisco. México.
Post Reply