🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1506

Re: Duda con XSLT

#1506
From: Osvaldo
Date: Thu, 20 Jul 2006 22:49
34 lines
1978 bytes
sigfridelunico@yahoo.com wrote:
> Output:
> <?xml version="1.0" encoding="UTF-16"?>
> <response>
> <RecordSet>
> </RecordSet>
> </response>
> **********************************
>
Ojala te sirva:

A mi me sucedio algo similar cuando hacia esto:

strXML = oDoc.transformNode(oLayout)

y de ahi

Response.write strXML

Que quiero decir? que probablemente la data ya venga con un charset
utf-16  y que por mas que cambies la cabecera (con
createProcessingInstruction por ejemplo) no servira de mucho.

La solucion (si este es el problema), es que cuando te generen el XML
no lo pasen por variables string, ya estas usan un charset utf-16 :

oRs.Save Response, adPersistXML ' stream hacia stream

Prueba tambien haciendo el transform hacia un stream y no hacia un
string.

Suerte,

-o
Technical Details
Message-ID: <1153435789.149466.262040@i3g2000cwc.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i3g2000cwc.googlegroups.com!not-for-mail
References: <1153258815.499570.152660@b28g2000cwb.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,3b904c28fe85d18f
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i3g2000cwc.googlegroups.com!not-for-mail
From: "Osvaldo" <osvaldo.ortiz@gmail.com>
Newsgroups: chile.comp.programacion
Subject: Re: Duda con XSLT
Date: 20 Jul 2006 15:49:49 -0700
Organization: http://groups.google.com
Lines: 35
Message-ID: <1153435789.149466.262040@i3g2000cwc.googlegroups.com>
References: <1153258815.499570.152660@b28g2000cwb.googlegroups.com>
NNTP-Posting-Host: 200.68.30.60
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1153435793 24842 127.0.0.1 (20 Jul 2006 22:49:53 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 20 Jul 2006 22:49:53 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 PRD1217
Complaints-To: groups-abuse@google.com
Injection-Info: i3g2000cwc.googlegroups.com; posting-host=200.68.30.60;
   posting-account=H1w0Ig0AAAD4IF9riqGAL5bureWp01Mj