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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System does not support the specified encoding.

Status
Not open for further replies.

QuantumDoja

Programmer
Jun 11, 2004
76
GB
Hi, I have this code: It reads in a dynamic xml and normal xsl stylesheet, but when i transform i get the error:
"System does not support the specified encoding."
Any ideas?


Code:
<%
'Response.ContentType = "text/xml"
'Response.Expires = 0

	'loading an article from the database.
	Dim ID
		ID = Request.QueryString("ID")
		ID = Trim(ID)

	sourceFile = "genxml.asp?ID="&ID&""
	styleFile = Server.MapPath("Display.xsl")
  
  set source = Server.CreateObject("Microsoft.XMLDOM")
	  source.async = false
	  source.load(sourceFile)
  set style = Server.CreateObject("Microsoft.XMLDOM")
	  style.async = false
	  style.load(styleFile)
  Response.Write source.transformNode(style)

	%>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top