Click to See Complete Forum and Search --> : XML/XSL Problem with special Characters....


f.falk
December 20th, 2001, 03:48 AM
Hi,

I have an XML file with an XSL stylesheet. A Text field an
a submit button is displayed on the output. If i type in a
char like 'Ü' in the text field, the returnval on
submission is "fieldname=%C3%9C". But this is nothing i
can use or reconvert to the original char.

If i use the same things(textfield an submitbutton) in an
normal html-site without any XML/XSL, the returnval is %
DC. And this is 220 in my Ascii codepage and equals to 'Ü'.

What can i do to get the Original char from the
returnval of the xml/xsl page?

HTML STUFF:

<HTML>
<head>
<META http-equiv="Content-Type"></META>
<script language="javascript">
function onSubmit()
{
document.XSL.submit();
}
</script>
</head>
<body>
<form name ="XSL" method="POST" >
<input type="textbox" name="Text" value="Save"></input>
<input type="button" value="Save" onClick="onSubmit
()"></input>
</form>
</body>
</HTML>

--------
The Same with XML and an XSL Stylesheet:

XML STUFF:

<?xml version="1.0"?>
<?xml-stylesheet href="file:///D:/bugt.xsl"
type="text/xsl"?>
<top>
</top>

XSL:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<HTML>
<head>
<META http-equiv="Content-Type"></META>
<script language="javascript">
function onSubmit()
{
document.XSL.submit();
}
</script>
</head>
<body>
<form name ="XSL" method="POST" >
<input>
<xsl:attribute name="type">textbox</xsl:attribute>
<xsl:attribute name="name">Text</xsl:attribute>
<xsl:attribute name="value">Save</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">button</xsl:attribute>
<xsl:attribute name="value">Save</xsl:attribute>
<xsl:attribute name="onClick">onSubmit()</xsl:attribute>
</input>
</form>
</body>
</HTML>
</xsl:template>
</xsl:stylesheet>

Can anybody helps me?
How can i reconvert this "%C3%9C" crap?

Thank you very much

Regards

F.Falk

f.falk
December 20th, 2001, 03:48 AM
Hi,

I have an XML file with an XSL stylesheet. A Text field an
a submit button is displayed on the output. If i type in a
char like 'Ü' in the text field, the returnval on
submission is "fieldname=%C3%9C". But this is nothing i
can use or reconvert to the original char.

If i use the same things(textfield an submitbutton) in an
normal html-site without any XML/XSL, the returnval is %
DC. And this is 220 in my Ascii codepage and equals to 'Ü'.

What can i do to get the Original char from the
returnval of the xml/xsl page?

HTML STUFF:

<HTML>
<head>
<META http-equiv="Content-Type"></META>
<script language="javascript">
function onSubmit()
{
document.XSL.submit();
}
</script>
</head>
<body>
<form name ="XSL" method="POST" >
<input type="textbox" name="Text" value="Save"></input>
<input type="button" value="Save" onClick="onSubmit
()"></input>
</form>
</body>
</HTML>

--------
The Same with XML and an XSL Stylesheet:

XML STUFF:

<?xml version="1.0"?>
<?xml-stylesheet href="file:///D:/bugt.xsl"
type="text/xsl"?>
<top>
</top>

XSL:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<HTML>
<head>
<META http-equiv="Content-Type"></META>
<script language="javascript">
function onSubmit()
{
document.XSL.submit();
}
</script>
</head>
<body>
<form name ="XSL" method="POST" >
<input>
<xsl:attribute name="type">textbox</xsl:attribute>
<xsl:attribute name="name">Text</xsl:attribute>
<xsl:attribute name="value">Save</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">button</xsl:attribute>
<xsl:attribute name="value">Save</xsl:attribute>
<xsl:attribute name="onClick">onSubmit()</xsl:attribute>
</input>
</form>
</body>
</HTML>
</xsl:template>
</xsl:stylesheet>

Can anybody helps me?
How can i reconvert this "%C3%9C" crap?

Thank you very much

Regards

F.Falk