users@woodstock.java.net

Re: Upload component + TextField -> encoding problem for textfield

From: Dan Labrecque - Sun Microsystems <Dan.Labrecque_at_Sun.COM>
Date: Mon, 11 Jun 2007 13:03:41 -0400

Matthias Unverzagt wrote:
> Hi,
>
> I'm not sure if this is the right mailing list to ask the following
> question:
>
> Within NB6 (netbeans-trunk-nightly-200706080000-all-in-one.zip) I
> would like to use
> a textfield and an upload component on one page. For the textfield I
> would like to use UTF-8 encoding.
> I get the right encoding if
> - the textfield and the upload component are in separate forms
> I get the wrong encoding if
> - the textfield and the upload are in one form

In order for the upload component to perform it's tasks, the form
encoding type is set to multipart/form-data. Apparently, there are
issues with UTF-8 characters in a mutlipart/form-data encoded form.
Looking through some forums, some users have had success adding the
folowing to the page:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

I found several threads on the topic, but here is one which was referred
to often.

http://www.theserverside.com/discussions/thread.tss?thread_id=28944


> - even if I use two separate virtual forms.

A virtual form is not the same as an HTML form. Try placing the
textField in another HTML form so you can avoid the mutlipart/form-data
encoding.

Dan

>
> Any idea?
>
> Thanks, a lot.
>
> Matthias
>
>
> P.S. By the way: THE WOODSTOCK COMPONENTS ARE LOOKING VERY PROMISSING!
>
>
>
> ----------------------------------------------
> ENPASOS - Enterprise Patterns & Solutions GmbH
> Haintürchenstr. 2
> 61462 Königstein
>
> Email matthias.unverzagt_at_enpasos.com
> Handy 0177 606 3020
> Telefon 06174 3020
> Fax 06174 24 9292
>
> Amtsgericht Königstein: HRB6597
> Geschäftsführer: Dr. Matthias Unverzagt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>