cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leo leonid <...@leonid.de>
Subject multipart/form-data and UTF-8
Date Thu, 17 Jul 2003 19:42:28 GMT
Hi,
I've got a form where the user may upload an image as well as providing 
a title for the image:

	<form action="list-image.html" method="POST" 
enctype="multipart/form-data">
		<input type="file" name="uploaded_file"/>
		<input name="image_title" type="text" size="100"/>
		<input type="submit" value="submit"/>
	</form>

and an xsp collecting the data:

<xsp:logic>
	image_title = <xsp-request:get-parameter name="image_title" 
as="string" form-encoding="UTF-8"/>;
</xsp:logic>

Everything works perfect, as long as the image's title is in English. 
But I need to get UTF-8 data.
enctype="multipart/form-data" prevents this from working. Does anybody 
know a solution for this problem (other than splitting the form in two 
forms) ?

Thanks
/leo


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message