Re: [enhydra] Problem with UTF-8 and POST method in EE 6.3

João Paulo Ribeiro <[email protected]> Wed, 31 Aug 2005 16:46:37 +0100
Newsgroups gmane.comp.java.enhydra.general
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1125503135-10599-155
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
answers inline.<br>
<br>
Best regards.<br>
João Paulo Ribeiro<br>
<br>
Lofi Dewanto wrote:
<blockquote cite="[email protected]" type="cite">Hi João,
  <br>
  <br>
thanks a lot for your hints!
  <br>
  <br>
&lt;quote&gt;
  <br>
In my case the problem was that the bytes was transformed in to String
without explicit encoding.
  <br>
&lt;/quote&gt;
  <br>
  <br>
Yes, I think this is my problem too, since it works with GET and
  <br>
only in POST I have to transform the bytes to String by myself...
  <br>
  <br>
My questions now:
  <br>
  <br>
1) So I don't need to add "charset=utf-8" in my form method?
  <br>
Should it stay like this?
  <br>
&lt;form method="post" action="" name="FileUpload" id="FormMethod"
enctype="multipart/form-data"&gt;
  <br>
</blockquote>
JPR -  by default if send the html page to the client in utf-8, any GET
or POST from this page will be in utf-8.<br>
It will not hurt if you leave it there.<br>
<blockquote cite="[email protected]" type="cite">2) Where do
you get this constant?
  <br>
HttpUtils.ENCODING
  <br>
I cannot find it...
  <br>
  <br>
</blockquote>
JPR - javax.servlet.http.HttpUtils<br>
<blockquote cite="[email protected]" type="cite">Another
question: Is there any Enhydra utility class to handle
  <br>
POST method easily and taking care of such things like above?
  <br>
IMO, everyone use POST method in HTML forms, so would be great
  <br>
if we don't have to write such a method by ourself... :-)
  <br>
  <br>
</blockquote>
JPR - I agree. <br>
<blockquote cite="[email protected]" type="cite">Thanks a lot
and cheers,
  <br>
  <pre wrap="">
<hr size="4" width="90%">

--
You receive this message as a subscriber of the <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> mailing list.
To unsubscribe: <a class="moz-txt-link-freetext" href="mailto:[email protected]">mailto:[email protected]</a>
For general help: <a class="moz-txt-link-freetext" href="mailto:[email protected]?subject=help">mailto:[email protected]?subject=help</a>
ObjectWeb mailing lists service home page: <a class="moz-txt-link-freetext" href="http://www.objectweb.org/wws">http://www.objectweb.org/wws</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
João Paulo Ribeiro | Senior Software Engineer
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>

PHONE: + 351 253 305 250 
FAX  : + 351 253 305 250
<a class="moz-txt-link-abbreviated" href="http://www.mobicomp.com">www.mobicomp.com</a>
 
________________________________________________________________

About Solutions | Wireless World

CONFIDENTIALITY NOTICE: This message, as well as existing attached files, is confidential and intended exclusively for the individual(s) named as addressees. If you are not the intended recipient, you are kindly requested not to make any use whatsoever of its contents and to proceed to the destruction of the message, thereby notifying the sender. 
DISCLAIMER: The sender of this message can not ensure the security of its electronic transmission and consequently does not accept liability for any fact which may interfere with the integrity of its content.</pre>
</body>
</html>


------------=_1125503135-10599-155
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1125503135-10599-155--