From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: squares in buffer instead of utf-8 characters Date: Sat, 14 Apr 2007 19:27:58 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87k5wfwbj5.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176543495 13409 80.91.229.12 (14 Apr 2007 09:38:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2007 09:38:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 11:38:07 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hcehq-0007a9-Pb for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 11:38:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcemD-0007MQ-Ed for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2007 05:42:37 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border2.newsrouter.astraweb.com!sn-xt-sjc-05!sn-xt-sjc-08!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:nzadurySeS6vrZTt+yJwyoz+jyI= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 53 Original-Xref: shelby.stanford.edu gnu.emacs.help:147063 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42667 Archived-At: rahed writes: > Hi, > > I created a file using input method and saved as utf-8. The file is > rendered ok in a browser but in an emacs buffer all unicode characters > are mere boxes. > > Unicode characters have typically this property: > > character: ? (331835, #o1210073, #x5103b, U+011B) > charset: mule-unicode-0100-24ff (Unicode characters of the range U+0100..U+24FF.) > code point: #x20 #x3B > syntax: w which means: word > category: l:Latin > buffer code: #x9C #xF4 #xA0 #xBB > file code: #xC4 #x9B (encoded by coding system mule-utf-8-unix) > display: no font available > > Don't know how to remedy unavailability of the font. OS is Solaris and > emacs version 22.0.91.1. > At a guess, I suspect you are running under X. This means you have either a fontpath setting that points to directories containing the fonts your X server is able to provide or you have a font server configured. The boxes indicate that emacs wants to display the characters with a specific font, but it cannot find that font (either in your font path or from the font server). There are a couple of points to keep in mind here. If your connecting to the solaris box from a remote system, such as a workstation, then the fonts need to be available to your local workstation X server, not on the solaris X server. In this case, the issue is with your local X configuration or the fonts it has available. You can use a program like xfontsel, which will allow you to select fonts from those which are available to the X server. Use this program and try to identify a suitable font. Set the font for emacs to this font and things should work. This can be done in a number of ways, but to begin with and for experimentation, set it on the command line using the -fn option (I think its -fn, check the manual). Don't forget that since the font names contain *, you will need to quote the font string to prevent the shell from trying to expand the *. Once you have a font that works, set it in either your .Xresources file, your .emacs file or via customize. HTH Tim -- tcross (at) rapttech dot com dot au