From owner-freebsd-fs@FreeBSD.ORG Mon Jan 17 16:01:37 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 177FF16A4CE; Mon, 17 Jan 2005 16:01:37 +0000 (GMT) Received: from elrond.anembo.nu.org (dsl-202-173-130-73.nsw.westnet.com.au [202.173.130.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3942543D1D; Mon, 17 Jan 2005 16:01:36 +0000 (GMT) (envelope-from cjsv@elrond.anembo.nu.org) Received: from elrond.anembo.nu.org (localhost [127.0.0.1]) by elrond (8.13.1/8.13.1) with ESMTP id j0H20fJ3002089; Mon, 17 Jan 2005 13:00:41 +1100 (EST) (envelope-from cjsv@elrond.anembo.nu.org) Received: (from cjsv@localhost) by elrond.anembo.nu.org (8.13.1/8.13.1/Submit) id j0H20dml002088; Mon, 17 Jan 2005 13:00:39 +1100 (EST) (envelope-from cjsv) Date: Mon, 17 Jan 2005 13:00:39 +1100 From: Christopher Vance To: David Yu Message-ID: <20050117020039.GB630@nu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: cc: freebsd-fs@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: NTFS unicode converting problem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 16:01:37 -0000 On Sun, Jan 16, 2005 at 01:44:04PM -0800, David Yu wrote: >Hi, it seems that NTFS in FreeBSD uses a 16-bit long wchar to store >filename. When I wanted to convert some Chinese filename into UTF-8, >the conversion was failed because a single Chinese character needs 3 >bytes in UTF-8. Is anyone already working on this problem? If not, I >would like to do something about it. Any suggestions? >From memory, old Windows used UCS-2, while newer Windows uses UTF-16. Was the bad character in plane 0 or higher? -- Christopher Vance