From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Multibyte chars Date: Thu, 08 May 2003 09:34:00 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1052380075 3383 80.91.224.249 (8 May 2003 07:47:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 8 May 2003 07:47:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 08 09:47:50 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Dg86-0000s4-00 for ; Thu, 08 May 2003 09:47:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Dg6J-0005hY-05 for gnu-help-gnu-emacs@m.gmane.org; Thu, 08 May 2003 03:45:59 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!dialin-145-254-191-211.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: dialin-145-254-191-211.arcor-ip.net (145.254.191.211) Original-X-Trace: fu-berlin.de 1052379658 18138202 145.254.191.211 (16 [87814]) X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:4ToqoYJAGuFo5eIJeogCDkAOVeE= Original-Xref: shelby.stanford.edu gnu.emacs.help:112935 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9429 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9429 Harry Putnam writes: > Oliver Scholz writes: [...] >> That sounds as if the text is interpreted as unibyte text. What is the >> value of `enable-multibyte-characters' in this buffer? -- But if it is >> t, what does `C-u C-x =' return with point on such a character? > > Oliver... Sorry I took so long to reply here. > > Since its been so long since this thread was current.. The response > of yours referenced abouve is: > Message-ID: > > About `enable-multibyte-characters': In that buffer the value is `nil' > but I ran into something I don't understand trying to set it to `t'. > > M-x set-variable enable-multibyte-characters t > > Gives me: > Variable enable-multibyte-characters is read-only > > I don't recall ever seeinig that message come up when setting a var before. Yes, that's expected for `enable-multibyte-characters'. (Though I don't know how it is implemented, not having read the code.) You can toggle a buffer between multibyte and unibyte with the command `M-x toggle-enable-multibyte-characters'. But I believe that this should normally not be necessary. Emacs uses multibyte buffers by default. Do you start it with the "--unibyte" command line option? Or do you have `(standard-display-european t)' somewhere in you .emacs? Toggling with `toggle-e-m-characters' when Gnus displays the article won't help, because the strange characters and numbers that you see are probably the UTF-8 representation interpreted as unibyte characters. So the article was not decoded in the first place. Toggling multibyte will only help, if the UTF-8 got decoded to Emacs' internal multibyte representation (emacs-mule). But I think that all this will just work, if you find out what causes your Emacs to use a unibyte buffer. Oliver -- 19 Floréal an 211 de la Révolution Liberté, Egalité, Fraternité!