Encoding problem with FileUpload

2007-05-07 Thread Jean-Noël Rivasseau
Hello, I would like to know what exactly means "using the default character encoding" for a FileItem getString() method: *getString *() Returns the contents of the file item

Re: [Urgent] UTF-8 encoding problem

2007-01-04 Thread luc . maisonobe
You can also try the GNU program recode by François Pinard (available under GNU/Linux, Unix and other systems as well. For example, the following command line should start conversion from file x.xml and put the result in y.xml but stop at the first character that is not really in UTF-8: recode

Re: [Urgent] UTF-8 encoding problem

2007-01-04 Thread Tom
encoding problem to me; Try submitting an xml-file with "simple" (<127) characters; these are encoded the same way in other encoding schemes (like windows 1252) and utf8; if this works, I would think that the submitted xml-file is not correctly utf8 encoded; as the xml-header defi

RE: [Urgent] UTF-8 encoding problem

2007-01-04 Thread Jan.Van-Stalle
Sound more like an encoding problem to me; Try submitting an xml-file with "simple" (<127) characters; these are encoded the same way in other encoding schemes (like windows 1252) and utf8; if this works, I would think that the submitted xml-file is not correctly utf8 encoded

Re: [Urgent] UTF-8 encoding problem

2007-01-04 Thread Mark Diggory
This looks more like an XML / Xerces Parsing issue, I would seek help there. Sounds like your placing non-UTF encoded chars into your XML file. -Mark On 12/28/06, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote: Hi, I am using Jakarta Configuration to manipulate some XML files. I have the foll

Re: [Urgent] UTF-8 encoding problem

2006-12-29 Thread Thomas Thomas
(this is my address from home) Thank u all for your precious comments, it helped. For some reason I didn't write a String encoded as UTF-8. I still can't figure out why. I have added this code : * byte*[] codedString; String decoded=*null*;

Re: [Urgent] UTF-8 encoding problem

2006-12-28 Thread Thorbjørn Ravn Andersen
DECAFFMEYER MATHIEU skrev den 28-12-2006 11:30: What do u suggest me to do ? You have a broken xml-file where the byte stream is not a valid UTF-8 stream. Try loading the file in Internet Explorer and see what it says about the file. -- Thorbjørn smime.p7s Description: S/MIME Cryptog

Re: [Configuration] UTF-8 encoding problem

2006-12-28 Thread Andrew Shirley
On Fri, Dec 29, 2006 at 01:00:51AM +1300, Simon Kitching wrote: > On Thu, 2006-12-28 at 11:15 +, Andrew Shirley wrote: > > On Thu, Dec 28, 2006 at 11:30:07AM +0100, DECAFFMEYER MATHIEU wrote: > > > > > > Hi, > > > > > > I am using Jakarta Configuration to manipulate some XML files. > > > > >

Re: [Configuration] UTF-8 encoding problem

2006-12-28 Thread Simon Kitching
On Thu, 2006-12-28 at 11:15 +, Andrew Shirley wrote: > On Thu, Dec 28, 2006 at 11:30:07AM +0100, DECAFFMEYER MATHIEU wrote: > > > > Hi, > > > > I am using Jakarta Configuration to manipulate some XML files. > > > > > > > > What do u suggest me to do ? > > > > Thank u for any help ! Will

Re: [Configuration] UTF-8 encoding problem

2006-12-28 Thread Andrew Shirley
On Thu, Dec 28, 2006 at 11:30:07AM +0100, DECAFFMEYER MATHIEU wrote: > > Hi, > > I am using Jakarta Configuration to manipulate some XML files. > > > What do u suggest me to do ? > > Thank u for any help ! Will be greatly appreciated ! This may be that the file isn't actually UTF-8 i.e. it

[Urgent] UTF-8 encoding problem

2006-12-28 Thread DECAFFMEYER MATHIEU
Hi, I am using Jakarta Configuration to manipulate some XML files. I have the following error when I open one of the files : org.apache.commons.configuration.ConfigurationException: Octet 2 incorrect dans la séquence UTF-8 à 3-octets. at org.apache.commons.configuration.XMLConfigurati

RE: Encoding problem uploading a file

2006-10-24 Thread Jan.Van-Stalle
: Tuesday, October 24, 2006 3:36 PM To: commons-user@jakarta.apache.org Subject: Encoding problem uploading a file Hi, we have a web program that were our clients in different Countries of the world use to upload some files to us. We have a problem with the files been uploaded from Haiti. When they

Encoding problem uploading a file

2006-10-24 Thread Andres Rangel
Hi, we have a web program that were our clients in different Countries of the world use to upload some files to us. We have a problem with the files been uploaded from Haiti. When they upload the file, our servlet does not recognize it. it reads undefined characters. But if they send me the file b

Re: Base64 encoding problem

2006-06-14 Thread Neal Johnson
I have had a similar problem when using strings in this way, The way I got around this was to use a to specify the specific encoding when constructing the string object, by default the constructer will use the operating system character encoding witch can very dramatically even though it su

Re: Base64 encoding problem

2006-06-14 Thread luc . maisonobe
Selon Priti Menon <[EMAIL PROTECTED]>: Could you try to remove the encoding/decoding part and performing directly: String decodedString = new String(s.getBytes()); and to compare the hash codes ? If this fails, then it would mean the special character is not valid in the default encoding of yo

Base64 encoding problem

2006-06-14 Thread Priti Menon
Hi All, I am facing a problem with the Base64 encoding class in the commons package. i.e. org.apache.commons.codec.binary.Base64 I am trying to encode & decode a string back to its original value. I have tried this on windows & linux. If you compare the hashcodes of the original string with the n

RE: [net] encoding problem

2004-12-22 Thread Marc-Christian Schröer
> Hi Marc, > > Try setting encoding type as "UTF-16". I tried this one but with no effect. I recently read somewhere that the commons-net-package will be autonegotiating the encoding in the future. Are there any effords being made in the current cvs-release? > N. -- Mit Grüßen aus dem Technolog

RE: [net] encoding problem

2004-12-22 Thread Nupur Khemka
Hi Marc, Try setting encoding type as "UTF-16". N. -Original Message- From: Marc-Christian Schröer [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 1:02 PM To: commons-user@jakarta.apache.org Subject: [net] encoding problem Hello list! I am using the FTPClien

[net] encoding problem

2004-12-21 Thread Marc-Christian Schröer
Hello list! I am using the FTPClient class to upload files to a Linux server using UTF-8 encoding for its filenames, etc. I have recently run into some serious problem: files containing German umlauts are not stored correctly on the destination system. Using the standard ftp client supplied with t

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-10 Thread Edson Carlos Ericksson Richter
In my JSP i put: "/> ... and in the form: I removed the <@page encoding...> because I don't know the encoding adopted by ${encoding} variable. Then, in the servlet I call, I used: Properties p = System.getProperties(); fu.setHeaderEncoding(p.getProperty("file.encoding",

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-10 Thread Jérémie LOPEZ
> I have solved the problem seting the same character set as page encoding, form encoding and then setting setHeaderEncoding. Could you give me more details? (ok for the setHeaderEncoding, but what do you mean exactly with the page encoding and form encoding?) Btw, I installed Oleg's patch but it

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-10 Thread Edson Carlos Ericksson Richter
set attribute > of the Content-Type header is specified) > > Hope this helps > > Oleg > > >-- Original Message -- > >Reply-To: "Jakarta Commons Users List" <[EMAIL PROTECTED]> > >From: Jérémie LOPEZ <[EMAIL PROTECTED]> > >To: Jakarta Com

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-09 Thread Guy Katz
small price for a great package -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 6:01 PM To: Jakarta Commons Users List Subject: Re: [FileUpload] character encoding problem (URGENT! PLZ HELP!) Be sure to read the license if you want to use

Re: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-09 Thread Martin Cooper
akarta Commons Users List > Subject: RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!) > > > there is a very well known stable package alternative which accepts an > encoding parameter to the multipart/form-data parser and works great > > Are you talking of an alter

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-09 Thread olegk
Content-Type header is specified) Hope this helps Oleg >-- Original Message -- >Reply-To: "Jakarta Commons Users List" <[EMAIL PROTECTED]> >From: Jérémie LOPEZ <[EMAIL PROTECTED]> >To: Jakarta Commons Users List <[EMAIL PROTECTED]> >Subject: RE: [Fil

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-09 Thread Guy Katz
it in massive scale production applications in my last company. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 3:24 PM To: Jakarta Commons Users List Subject: RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!) > there i

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-09 Thread Jérémie LOPEZ
> there is a very well known stable package alternative which accepts an encoding parameter to the multipart/form-data parser and works great Are you talking of an alternative implementation of the Commons-FileUpload (like with new FileItemFactory and so on) or a totally different framework/libra

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-07 Thread Guy Katz
: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 4:37 PM To: Jakarta Commons Users List Subject: Re: [FileUpload] character encoding problem (URGENT! PLZ HELP!) If the content is a file it should just be base64 encoded or something, so it can be saved using the FileUpload

Re: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-06 Thread Jason Lea
: vendredi 6 août 2004 16:09 À : Jakarta Commons Users List Objet : Re: [FileUpload] character encoding problem (URGENT! PLZ HELP!) I would assume you do something like this: DiskFileUpload upload = new DiskFileUpload(); upload.setHeaderEncoding("UTF-8"); (I haven't tried it myself.) Jé

RE: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-06 Thread Jérémie LOPEZ
Message d'origine- De : Jason Lea [mailto:[EMAIL PROTECTED] Envoyé : vendredi 6 août 2004 16:09 À : Jakarta Commons Users List Objet : Re: [FileUpload] character encoding problem (URGENT! PLZ HELP!) I would assume you do something like this: DiskFileUpload upload = new DiskFileUpload();

Re: [FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-06 Thread Jason Lea
I would assume you do something like this: DiskFileUpload upload = new DiskFileUpload(); upload.setHeaderEncoding("UTF-8"); (I haven't tried it myself.) Jérémie LOPEZ wrote: Hi all, I'm using the Commons FileUpload in a webapp hosted on a unix server. When a windows client uploads a text file with

[FileUpload] character encoding problem (URGENT! PLZ HELP!)

2004-08-06 Thread Jérémie LOPEZ
Hi all, I'm using the Commons FileUpload in a webapp hosted on a unix server. When a windows client uploads a text file with accented characters, they're replaced by '?' or 'ý'... I suppose I must specify some character encoding or that sort of thing, but where and what exactly? TIA JimmyL.

Re: [DBCP] Encoding Problem

2004-07-04 Thread Dirk Verbeeck
Try connectionProperties characterEncoding=UTF-8;useUnicode=true -- Dirk Damian Minkov wrote: I'm using Tomcat 4.1.30 on Debian machine. Version of DBCP - libcommons-dbcp-java_1.0-4_all.deb Have a web application in which I'm using Hibernate. But when I have configured to use DBCP f

[Net.NNTP] character encoding problem

2004-07-02 Thread Koon Yue Lam
Hi, I am rather new in Net.NNTP and now I hava a question I use the commons.net.io.DotTerminatedMessageReader.Read() method to read the post content fethch from newsserver. If the content is in English, no problem, everything just fine. However if the content's encoding UTF-8 / Big5, all character

[DBCP] Encoding Problem

2004-07-02 Thread Damian Minkov
I'm using Tomcat 4.1.30 on Debian machine. Version of DBCP - libcommons-dbcp-java_1.0-4_all.deb Have a web application in which I'm using Hibernate. But when I have configured to use DBCP for connections which Hibernate uses I have problem with encoding ( for retrieving data and for inser

Re: Encoding Problem

2002-11-07 Thread Paul Libbrecht
Using getResponseBodyAsString() would only work if the appropriate encoding is provided in the header and if HttpUtils uses this header. (sorry can't check it). If you know the encoding of the source document beforehand... you're fine. But be very careful, knowing the encoding on the server is g

Re: Encoding Problem

2002-11-07 Thread Parag Thakur
da" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 07, 2002 8:45 AM Subject: Re: Encoding Problem Hi Paul, Thanks for your reply! Unfortunately, I did what you suggested and it still appeared as a question mark. However, I tried the same code on a Windows machin

Re: Encoding Problem

2002-11-07 Thread Anand Heda
could provide any information or help, I would greatly appreciate it. Thanks so much! Anand From: Paul Libbrecht <[EMAIL PROTECTED]> Reply-To: "Jakarta Commons Users List" <[EMAIL PROTECTED]> To: "Jakarta Commons Users List" <[EMAIL PROTECTED]> Subject: Re:

Re: Encoding Problem

2002-10-18 Thread Paul Libbrecht
On Vendredi, octobre 18, 2002, at 11:35 , Anand Heda wrote: I am both a java novice and a HTTPClient newbie, so please bear with me :-). I have written some simple code which retrieves a webpage and outputs the content of it. However, certain characters (like ó, which is a long dash) do not

Encoding Problem

2002-10-18 Thread Anand Heda
Hi, I am both a java novice and a HTTPClient newbie, so please bear with me :-). I have written some simple code which retrieves a webpage and outputs the content of it. However, certain characters (like —, which is a long dash) do not appear correctly when I output them. Instead, a ? (questi