- From: Lenny Turetsky <LTuretsky@salesforce.com>
- Date: Mon, 20 Aug 2001 10:05:23 -0700
- To: "'Sam'" <samk@vwebsol.com>
- Cc: "'www-international@w3.org'" <www-international@w3.org>
- Message-ID: <13A191251979D411A44000D0B76FDEE202728853@samoa.internal.salesforce.com>
Sam, The java.net.URLEncoder class is *NOT* correct in regards to encoding non-English characters. http://developer.java.sun.com/developer/bugParade/bugs/4257115.html I wrote my own replacement for it, which you're welcome to use. It's attached to this e-mail. Happy coding, LT -----Original Message----- From: Sam [mailto:samk@vwebsol.com] Sent: Sunday, August 19, 2001 6:20 PM To: www-international@w3.org Subject: Passing non-english character params in URL Hi I'm working on a project where i need to pass some params to a URL for processing the data. In this case the data passed as params could be english or non-english.when i process the data on the servlet invoked by the URL the non-english data is junk. The exact scenario is i have a servlet which picks up data from an oracle database which can contain english as well as thai characters.I send this data to a Oracle Report Server where this data will be displayed in a Report.The data picked up by the Report Server is proper, where as the data passed thru URL is not. I use jdk 1.2.2 and Oracle 8.1.6 database on Solaris, and the Oracle Report Server is 6.1 running in NT English. The servlet is hosted on the weblogic6.0 in solaris. Would like any suggestions and directions regarding this. Thanks and Regards SAM
Attachments
- application/octet-stream attachment: URLEncoder.java
Received on Monday, 20 August 2001 13:05:58 UTC