Adres, Try to figure out which characters are problematic; start with a simple file containing only characters beneath 127 (that should work); you probably encounter problems with characters above this encoding.
Probably the file will not be UTF-8 encoded, but since it comes from windows, could it be windows-1252 ? It has some characters which are not UTF-8 compatible and which might cause the problem. Jan ------------------ Jan Van Stalle DIGIT.B.03 tel +32 2 299 49 82 Bureau MO34 2/54 -----Original Message----- From: Andres Rangel [mailto:[EMAIL PROTECTED] Sent: 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 upload the file, our servlet does not recognize it. it reads undefined characters. But if they send me the file by mail, and I upload the file from my PC, it works with no problem. I tried setting up the encoding in the html page that uploads the form, and I also set up the encoding when reading the file: FileItem item = (FileItem)upload.parseRequest(request).get(0); InputStream inputStr = null; inputStr = item.getInputStream(); in = new BufferedReader(new InputStreamReader(inputStr,"UTF-8")); But I am still not been able to parse their file. I can change the settings in their PC , but I jus don't know what to change, since they tell me they have US english as the default language in their OS (Windows XP); I even made them download IE7 to see if it was the browser, but got the same result. any help is appreciated thks Andres R SW Engineer MIS Dept. Girosol Corp. ============================================================================= This email communication (and any attachments) are confidential and are intended only for the individual(s) or entity named above and others who have been specifically authorized to receive it. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication to others. Please notify the sender that you have received this email in error by replying to the email or by telephoning (305)944-1424. Please then delete the email and any copies of it. This information may be subject to legal professional or other privilege or may otherwise be protected by work product immunity or other legal rules. Thank you ============================================================================== _____________________________________________________________________________ Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com _____________________________________________________________________________ --------------------------------------------------------------------- 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]