From owner-freebsd-questions@FreeBSD.ORG Thu Sep 20 21:23:40 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62B7916A678 for ; Thu, 20 Sep 2007 21:23:40 +0000 (UTC) (envelope-from ronggui.huang@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.229]) by mx1.freebsd.org (Postfix) with ESMTP id DFBD713C55F for ; Thu, 20 Sep 2007 21:23:31 +0000 (UTC) (envelope-from ronggui.huang@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so500680nzf for ; Thu, 20 Sep 2007 14:23:31 -0700 (PDT) Received: by 10.142.82.17 with SMTP id f17mr127313wfb.1190307657008; Thu, 20 Sep 2007 10:00:57 -0700 (PDT) Received: by 10.143.8.5 with HTTP; Thu, 20 Sep 2007 10:00:56 -0700 (PDT) Message-ID: <38b9f0350709201000u7e827c5fm77d7bbc4ff2abef6@mail.gmail.com> Date: Fri, 21 Sep 2007 01:00:57 +0800 From: ronggui To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: openoffice problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2007 21:23:40 -0000 [wincent@pcbsd /usr/home/wincent]$ locale LANG=zh_CN.GBK LC_CTYPE="zh_CN.GBK" LC_COLLATE="zh_CN.GBK" LC_TIME="zh_CN.GBK" LC_NUMERIC="zh_CN.GBK" LC_MONETARY="zh_CN.GBK" LC_MESSAGES="zh_CN.GBK" LC_ALL= When I start the OOs, I can input Chinese correctly unless I set export LC_CTYPE=zh_CN.UTF-8 before I fireup the oos. Even I can input Chinese by this messy way, but when I save odf by Chinese filename, the filename is in UTF-8 encoding (and I can open the file with GBK encoding character as filename). I guess the OOS use UTF-8 as its default encoding, so my question is how to set the relevant parameters so that the OOs works fine? Thanks -- Ronggui Huang Department of Sociology, Fudan University, Shanghai, China Department of Public and Social Administration, CityU, HK