From owner-freebsd-java Thu May 28 23:56:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA16876 for freebsd-java-outgoing; Thu, 28 May 1998 23:56:50 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ms11.hinet.net (root@ms11.hinet.net [168.95.4.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA16839; Thu, 28 May 1998 23:56:39 -0700 (PDT) (envelope-from jwlo@ms11.hinet.net) Received: from ms11.hinet.net (dialup244.cyut.edu.tw [163.17.3.244] (may be forged)) by ms11.hinet.net (8.8.8/8.8.8) with ESMTP id OAA14717; Fri, 29 May 1998 14:59:10 +0800 (CST) Message-ID: <356E5B22.C5862CE4@ms11.hinet.net> Date: Fri, 29 May 1998 14:52:18 +0800 From: Doug Lo X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.6-RELEASE i386) MIME-Version: 1.0 To: Luoqi Chen CC: freebsd-java@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: Chinese in JAVA. References: <199805290507.BAA20755@lor.watermarkgroup.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luoqi Chen wrote: > > Hello, > > > > I write a java applet to display Chinese, I run 'javac -encoding Big5 xxx.java', > > > > but it can't display chinese on FreeBSD, would anyone know how to do, thanks. > > > > P.S. I've installed Chinese X server so I can see chinese on Netscape without > > any problem. > > > > Best regards, > > Doug. > > > You might want to check the file jdk/lib/font.properties.zh_TW_Big5. It has > font mappings from java to XLFD. Make sure you have the fonts listed there > (i.e. chinese fonts distributed by sun) or replace the XLFDs with the ones > you have. I checked the file font_properties.zh_TW_Big4. I didn't have the fonts listed on it.I'm not familiar with JAVA, would you tell me what is XLFD, thanks. > BTW, what did you mean by Chinese X server? Yup! > Did you mean you have chinese > fonts installed or a localized X server? AFAIK, Xlib doesn't even know > how to handle BIG5 encodings (it knows GB and CNS). You would install both chinese X server and chinese fonts on your system, and you would seeChinese mails, homepages, or others without any problem. Best regards, Doug. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message