From owner-freebsd-java Thu May 28 22:08:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA23943 for freebsd-java-outgoing; Thu, 28 May 1998 22:08:33 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA23775; Thu, 28 May 1998 22:08:04 -0700 (PDT) (envelope-from luoqi@lor.watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id BAA20755; Fri, 29 May 1998 01:07:25 -0400 (EDT) (envelope-from luoqi) Date: Fri, 29 May 1998 01:07:25 -0400 (EDT) From: Luoqi Chen Message-Id: <199805290507.BAA20755@lor.watermarkgroup.com> To: freebsd-java@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG, jwlo@ms11.hinet.net Subject: Re: Chinese in JAVA. Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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. BTW, what did you mean by Chinese X server? 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). -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message