From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: patrol Newsgroups: gmane.emacs.help Subject: Re: character encoding confusion Date: Thu, 8 Jul 2010 06:30:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <09f7f510-2d5e-4d2d-afcd-576df7277016@g19g2000yqc.googlegroups.com> References: <87eifewhr6.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291843239 5465 80.91.229.12 (8 Dec 2010 21:20:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 21:20:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 22:20:33 2010 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.69) (envelope-from ) id 1PQRR8-0005jU-CM for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 22:20:30 +0100 Original-Received: from localhost ([127.0.0.1]:39931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQRPH-0002zW-Bk for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 16:18:35 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!g19g2000yqc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 173.34.86.168 Original-X-Trace: posting.google.com 1278595843 23110 127.0.0.1 (8 Jul 2010 13:30:43 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 8 Jul 2010 13:30:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g19g2000yqc.googlegroups.com; posting-host=173.34.86.168; posting-account=tRtJWQkAAABbewN3eJi0F90kUywr8NrS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; MathPlayer 2.10d; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:179620 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:76018 Archived-At: On Jul 8, 3:32=A0am, Tim X wrote: > There has been a lot of chnage in emacs encoding and there are a number > of possibilities. > > 1. What version of emacs? The latest stable release, 23.2 > 2. Can you clarify what you mean by you created a program in C that > requires the degree symbol. Do you mean it needs that character in the > source code, as standard input or as a value in an input file? Are you > running the program inside emacs or are you generating datafiles for the > program to consume etc. It's just a temperature table that I'm printing, so I need to print "degree symbol"F. My code for that was printf("%cF", 176), which gave me "shaded box"F. > 3. Depending on how this is all interacting, your OS locale settings, > whether your running in GUI mode under X or within an xterm or the > console can all be relevant. Yes, I think I understand the problem better now (see response to John) and I agree that the OS locale settings are relevant. Thank you.