Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 65121 invoked from network); 29 Jul 2010 00:44:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jul 2010 00:44:16 -0000 Received: (qmail 94162 invoked by uid 500); 29 Jul 2010 00:44:16 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 94109 invoked by uid 500); 29 Jul 2010 00:44:15 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 94100 invoked by uid 99); 29 Jul 2010 00:44:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 00:44:15 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.13.13.240] (HELO smtp101.sbc.mail.ac4.yahoo.com) (76.13.13.240) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 29 Jul 2010 00:44:09 +0000 Received: (qmail 91951 invoked from network); 29 Jul 2010 00:43:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1280364228; bh=eTeNSMa2EsF7ANAcccBnDfjm70C0bByBhX05g8vnsKY=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=LzaCrM7rrJo7JZ9SL/RxoZrNyZRRJvVC/2diZyypheCQTji8hFnZnNzZtinS4xnBAFxo5CfIfL+QU8CGRqGj6ReTWmtSimou064BNZRMnO4+w2r4cKPz36kJJGWuUrYKPRG4SeeMSTKTn8lsWDl6jpCBLXc0F/H3dqf92MB5bcM= Received: from [192.168.1.64] (markdjonson@68.21.197.135 with plain) by smtp101.sbc.mail.ac4.yahoo.com with SMTP; 28 Jul 2010 17:43:48 -0700 PDT X-Yahoo-SMTP: wvVGqB2swBBWfDifZjTqAKtiGEa2U8XjTivnKdELJNo- X-YMail-OSG: TC6z7AsVM1nl7UR.MFckCBKy9quMaPLbrgpdpOlD3oY0ZZd MagMHtaTVoxyT3KZp81SLHfhuet9uLqno5ZUMnTYjivBuIMO9gQe0Dp4sn7A ahLDpUBT_06dlMJS390filAV9FIpR3aK79BdftW.Ls14kQpXrxEtrMzQ8783 3ahcsqK0FzodnBIqZocgS1k3hGxiWoAa5xdGyPqcm0KZ4XT0QEDSiXLffOSv RpZYunZrPNbxzpkuk.xLy.Yol9vkyOstN1zL85w-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4C50CEB0.3050901@att.net> Date: Wed, 28 Jul 2010 19:43:28 -0500 From: "Mark D. Johnson" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: Derby Discussion Subject: Re: Problem Inserting Swedish Characters in Derby Database References: <4C4A5F97.9030903@att.net> <4C4F365E.2030807@oracle.com> In-Reply-To: <4C4F365E.2030807@oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Kristian - Thank you for your help. Your suggestion was correct. After some Googling I found this page: http://illegalargumentexception.blogspot.com/2009/04/i18n-unicode-at-windows-command-prompt.html#charsets_pound which explains the problem I had. It turns out that the Windows command prompt defaults to a different code page than other parts of Windows. By changing the code page and the font for the command prompt as described in the above article, I was able to get the characters to display properly. Regards - Mark Johnson On 7/27/2010 2:41 PM, Kristian Waagan wrote: > Hi Mark, > > Your little program produces the expected output for me. I can see > both the lower and upper case versions of the three last letters in > the Swedish alphabet correctly (as depicted on [1]). I copied the > program from your mail and pasted it into a file using vim in my > terminal. > > The question mark suggests a problem with your terminal settings. Are > you sure you're using a locale that can display/represent those letters? > (I guess things could go wrong both on the OS side and on the Java > side, the machine I tested on happened to use nb_NO.UTF-8) > Strings in Derby is stored as UTF-8 on disk, and are represented as > Java chars when decoded or being inserted as a String/Reader. To rule > out problems with storing and fetching, you could look up the Unicode > code points and make sure you get back what you put in. When I did > that, I could see that the code points that went in and came back out > were consistent with the contents of the Unicode chart "C1 Controls > and Latin-1 Supplement" (for instance \u00D6 and \u00E4). > > For completeness, which platform/OS are you seeing the trouble on?