Did you not have to cast "from" something? Would you mind showing me the asp code?
Thanks, Andoni. ----- Original Message ----- From: "Arnold Shore" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 17, 2003 9:29 PM Subject: RE: UTF-8 Sending Euro symbol to Servlet in Form data. > From a lurker: > > Maybe it's simply the form's default charset value that's the pblm. I've > been able to get all UTF8 stuff (into an ASP app'n) by casting the charset > as utf8 wherever it applies, including page and form. > > Arnold Shore > Annapolis, MD USA > > -----Original Message----- > From: THG [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 17, 2003 3:15 PM > To: Tomcat Users List > Subject: Re: UTF-8 Sending Euro symbol to Servlet in Form data. > Importance: High > > > try the following code snippet: > > > String value = "<String from your form>"; > try > { > value = new String(value.getBytes("ISO-8859-1"), "UTF-8") > } > catch (Exception ex) {} > > Then write the value (i. e. with a PreparedStatement) to the db. > > On Mon, 17 Feb 2003 19:56:54 > Andoni wrote: > >Actually the prepared statements couldn't help as I can get the Euro symbol > >into the database fine by hard-coding it into my statement. It is only > >getting the information **from the form to the servlet** that is having a > >problem. > > > > > > > >Andoni. > > > > > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
