Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 43518 invoked from network); 4 Oct 2007 18:25:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Oct 2007 18:25:03 -0000 Received: (qmail 23171 invoked by uid 500); 4 Oct 2007 18:24:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23145 invoked by uid 500); 4 Oct 2007 18:24:40 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 23131 invoked by uid 99); 4 Oct 2007 18:24:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2007 11:24:40 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amnon.lahav@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2007 18:24:41 +0000 Received: by ug-out-1314.google.com with SMTP id c2so418439ugf for ; Thu, 04 Oct 2007 11:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; bh=APHbfEARlUCtalUN8xN/l0//FM3mZX499s9sHJYafCM=; b=CmWMG8ZkyjHP9lGcbNibnGTeGUZvuj3HlCCZxrkoneLO5mevYun4pKgPGTqEOrNcAYE3x/CNsojalFCA8RdjAhseuq+O6bRtheg4pIKdf5SHksL8mWcnj0eCx8xe6CT9H9fjUEkpf9QCHaU8qGFSN3JOBo5WysP6+tBPzz1g2gU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=sTwxbq4pWldHBcVKwAYW37kBXfJ+SHSCoSVkRB5hpU1+toCXhDSH9z+GIxXvrztyvOL3kunMT5WwP1ht5551saFMnb/uNxA/CFJVhev0rrE6uqjAKwoHXUAfdfD0z9S4XoROWgFKfH7B1zgdDpLsEr1vkB9lKW/gdefM2PC/ON0= Received: by 10.66.237.14 with SMTP id k14mr2288475ugh.1191522259758; Thu, 04 Oct 2007 11:24:19 -0700 (PDT) Received: from koontz3db150c2 ( [88.154.219.236]) by mx.google.com with ESMTPS id b33sm2233970ika.2007.10.04.11.24.17 (version=SSLv3 cipher=RC4-MD5); Thu, 04 Oct 2007 11:24:18 -0700 (PDT) Message-ID: <000301c806b3$c9cb84d0$6602a8c0@koontz3db150c2> From: "Amnon Lahav" To: Subject: Can't read hebrew from file uploaded by commons.fileupload Date: Thu, 4 Oct 2007 20:24:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-8-i"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Virus-Checked: Checked by ClamAV on apache.org Hi i've asked for help a week ago and the anwers i get i didn't help me i would realy appreciate some help here i'm reading a csv file that i upload by commons.fileupload , when i just open the file on the HD and use a function to read it everything is ok but when i try to upload it the charEncoding gets all mixed up and i can't convert it back to hebrew no matter what i try . here is how i configed everything related and i've tried allmost all charencoding i can think of with public String convertEncoding(String isoString,String before,String after) { String utf8String = null; if (null != isoString && !isoString.equals("")) { try { byte[] stringBytesISO = isoString.getBytes(before); utf8String = new String(stringBytesISO,after); } catch(Exception e) { // As we can't translate just send back the best guess. System.out.println("UnsupportedEncodingException is: " + e.getMessage()); utf8String = isoString; } } else { utf8String = isoString; } return utf8String; } <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> in the jsp i allso use request.setcharcterencoding("utf8") when i open the csv with firefox on HD and properties->encoding it says windows1255 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org