You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Márcio Ferreira <mf...@telbit.pt> on 2004/02/03 00:17:48 UTC
Form problem
Hello,
I am writing a stylesheet that haves this form:
<xsl:template name="addBook1">
<form name="form1" method="post"
onsubmit="change_spaces(document.getElementById('txt').value);
change_spaces1(document.getElementById('desc').value); return check()"
action="save_bookmark">
<input type="hidden" name="date"
<table bgcolor="#CCCCCC" width="98%">
<tr>
<td class="datem">
BookMark
<input type="text" id="txt" name="nome" value="" size="30"
onKeyDown="charsCounter(this.form.nome,30);"
onKeyUp="charsCounter(this.form.nome,30);"/>
</td>
.....
and when i submit this form, if i put in the textbox one value with a
tilde, the value submited is like conclusão and i want conclusão.
Any hint?
Thank you in advance,
Márcio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Form problem
Posted by Joerg Heinicke <jo...@gmx.de>.
You read the requested parameters submitted in UTF-8 as ISO-8859-1. This
means your output format of the page is UTF-8, but your form-encoding is
ISO-8859-1. You can either change your serializer to output in
ISO-8859-1 by adding <encoding>ISO-8859-1</encoding> to its
configuration or set the form-encoding in the cocoon.xconf (just search
for "form-encoding").
Joerg
On 03.02.2004 00:17, Márcio Ferreira wrote:
> Hello,
> I am writing a stylesheet that haves this form:
>
> <xsl:template name="addBook1">
> <form name="form1" method="post"
> onsubmit="change_spaces(document.getElementById('txt').value);
> change_spaces1(document.getElementById('desc').value); return check()"
> action="save_bookmark">
> <input type="hidden" name="date"
> <table bgcolor="#CCCCCC" width="98%">
> <tr>
> <td class="datem">
> BookMark
> <input type="text" id="txt" name="nome" value="" size="30"
> onKeyDown="charsCounter(this.form.nome,30);"
> onKeyUp="charsCounter(this.form.nome,30);"/>
> </td>
> .....
>
> and when i submit this form, if i put in the textbox one value with a
> tilde, the value submited is like conclusão and i want conclusão.
>
>
> Any hint?
> Thank you in advance,
> Márcio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org