You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by leo leonid <te...@leonid.de> on 2003/07/17 21:42:28 UTC

multipart/form-data and UTF-8

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