Hello together.
We use XML/XSL in browser to generate some HTML data. XML and XSL uses
ISO-8859-1 encoding. In some cases HTML forms are generated, the form data is
submited with an URL-encoded get to the server.
We found that IE browsers encode the formdata in UTF8 before its URL-encoded.
Gecko browser just send ISO-8859-1.
Is there a way to enforce a certain encoding of submitted data?
Carsten
P.S:
The (simplified) XML Data is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="something" ?>
<show> <user cn="cb" h323="cb" hw-id="4733,00077 0645537" reg="145.253.157.10"
/> </show>
The (simplified) XSL is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <html>
- <HEAD>
<LINK rel="stylesheet" href="inno.css" type="text/css" />
</HEAD>
- <body style="background:#e0e0e0">
<strong>Gateway user edit</strong>
- <DIV id="listing">
<xsl:apply-templates select="show" />
</DIV>
</body>
</html>
</xsl:template>
- <xsl:template match="show">
- <form action="filterform.htm">
<input type="hidden" name="redirect" value="/close.htm" />
<input type="hidden" name="t" value="Dect" />
- <input name="cn">
- <xsl:attribute name="value">
<xsl:value-of select="//show/user/@cn" />
</xsl:attribute>
</input>
- <input name="h323">
- <xsl:attribute name="value">
<xsl:value-of select="//show/user/@h323" />
</xsl:attribute>
</input>
- <input name="e164">
- <xsl:attribute name="value">
<xsl:value-of select="//show/user/@e164" />
</xsl:attribute>
</input>
<input type="submit" name="op" value="OK" />
<input type="submit" name="op" value="Remove" />
<input type="submit" name="op" value="Cancel" />
</form>
</xsl:template>
</xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list