Return-Path: Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 1465 invoked from network); 4 Feb 2003 09:33:26 -0000 Received: from dubb05h09-0.dplanet.ch (212.35.36.9) by daedalus.apache.org with SMTP; 4 Feb 2003 09:33:26 -0000 Received: from dubb02h08-0.dplanet.ch (proxyace1-7.dplanet.ch [212.35.36.147] (may be forged)) by dubb05h09-0.dplanet.ch (8.9.3/8.9.3/1.01dplanet-smtp) with ESMTP id KAA19417 for ; Tue, 4 Feb 2003 10:33:37 +0100 From: o.kalnichevski@dplanet.ch Message-ID: <948776886.1044351216293.JavaMail.luser@dubb02h08-0.dplanet.ch> Date: Tue, 4 Feb 2003 10:33:36 +0100 (CET) To: Commons HttpClient Project Subject: One more time: UTIUtil.toUsingCharset Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Sung-Gu Please take no offense in my posts. I have never questioned sanity of URIUtil.encodeWithinQuery, however, I still have doubts about sanity of UTIUtil.toUsingCharset method. And the fact that you have been ignoring my and Odi's requests to provide a unit test for that method does not really help One more time I'll try to present my point Transformation in URIUtil.encodeWithinQuery does make perfect sense ------------------------------------------------------------------ ISO-8859-1 URLencode Unicode string -----------> byte[] ------------> Unicode string ------------------------------------------------------------------ Transformation in URIUtil.toUsingCharset does make any sense to me ------------------------------------------------------------------ ISO-8859-1 UTF-8 (or any other encoding) Unicode string -----------> byte[] ------------> Unicode string ------------------------------------------------------------------ I can well accept that I am not bright enough to get it, but I am trying. Maybe that kind of transformation has its purpose when dealing with Asian alphabets, but for European alphabets (including Cyrillic based) its absolutely useless. So, please help me to see the light by providing a test unit Cheers Oleg >Hi Oleg, > >You seems like got an answer... ;) > >BTW, the default should be just an default, when there is no set-up to be >referred. > >That would be happened to be considered for the running configuration on the >runtime...for applications or threads. > >Sung-Gu > >> + public static final String DEFAULT_CONTENT_CHARSET = "ISO-8859-1"; > >> Index: PostMethod.java >> + URIUtil.encodeWithinQuery (parameter.getName(), charset); > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org > >