Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am at wit's end !!!! (ASP Problem or XSL Problem?!?)

Status
Not open for further replies.

thuraivan

Technical User
Dec 11, 2001
8
IN
Hi..

I have an Asp file, which passes a parameter into an XSL... The XSL outputs some data based on the parameter... After that, the same ASP page outputs a form to the client, to collect some information...

My problem is... I get two junk characters viz.. "ÿþ" before the XSL output... irrespective of the data being output.

In the XSL file, i use <xsl:eek:utput method = &quot;html&quot; />... Am i doing a mistake in this line?

Anybody can help me... This is really nagging me...

Thanks...
Thuraivan
 
It seems that you are trying to output unicode without telling the browser about that.

Try using <xsl:eek:utput method=&quot;html&quot; encoding=&quot;Windows-1252&quot;/> or something like that.

Next to that, try not to buffer the result of the transformation in a string, as ASP is not unicode aware.

so, instead of

<code>response.write oXML.transformNode(..)</code>

use

<code>call oXML.transformNode(oXSLT, Response)</code>

That'll probably do the trick (as long as you do not output anything else in that ASP-script)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top