all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Problem with UTF-8
@ 2003-12-03 12:24 Konstantinos Efstathiou
  0 siblings, 0 replies; 10+ messages in thread
From: Konstantinos Efstathiou @ 2003-12-03 12:24 UTC (permalink / raw)


When writing the file:

   character: ^[[alpha] (05541, 2913, 0xb61, U+03B1)^[-A
     charset: greek-iso8859-7
	     (Right-Hand Part of Latin/Greek Alphabet (ISO/IEC 8859-7): 
ISO-IR-126.)
  code point: 97
      syntax: w 	which means: word
    category: g:Greek
buffer code: 0x86 0xE1
   file code: 0xCE 0xB1 (encoded by coding system mule-utf-8)
     display: by this font (glyph code)
      -etl-fixed-medium-r-normal--14-140-75-75-m-140-iso8859-7 (0xE1)

After saving and reopening the file:

   character: ^[[square] (01211661, 332721, 0x513b1, U+03B1)^[-A
     charset: mule-unicode-0100-24ff
	     (Unicode characters of the range U+0100..U+24FF.)
  code point: 39 49
      syntax: w 	which means: word
    category: g:Greek
buffer code: 0x9C 0xF4 0xA7 0xB1
   file code: 0xCE 0xB1 (encoded by coding system mule-utf-8-unix)
     display: no font avairable

Regards

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <mailman.1028.1070539813.399.help-gnu-emacs@gnu.org>]
* Re: Problem with UTF-8
@ 2003-12-04 10:14 Konstantinos Efstathiou
  0 siblings, 0 replies; 10+ messages in thread
From: Konstantinos Efstathiou @ 2003-12-04 10:14 UTC (permalink / raw)


Oliver Scholz writes:

> I see. It is a font problem. You need to create a fontset in order to
> solve it. Look for an appropriate ISO 10646-1 font and set Emacs up to
> use it for the charset mule-unicode-0100-24ff.
> ...
> It's just a
> font issue that you don't see the right glyphs for those characters.

I appreciate the reply and the detailed explanation. Unfortunately, 
running the Carbon version of Emacs under Mac OS X does not help. The 
problem is that for some reason Emacs/Carbon can not see any iso10646-1 
fonts. Although I have fixed width fonts like 'andale mono' which 
support WGL4 and which I have used before under Linux with encoding 
iso10646-1, Emacs says that they are available only with encoding 
mac-roman. Also the etl-* fonts which are the GNU intlfonts converted 
for use with Macs do not have the iso10646-1 encoding (but at least 
they have the iso8859-7 encoding). So basically I do not know how to 
proceed from here using the Carbon Emacs. In principle I can run the 
X11 version of Emacs but I prefer the Carbon version for many reasons.

Regards

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <mailman.974.1070458104.399.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.849.1070325841.399.help-gnu-emacs@gnu.org>]
* Problem with UTF-8
@ 2003-12-01 18:14 Konstantinos Efstathiou
  0 siblings, 0 replies; 10+ messages in thread
From: Konstantinos Efstathiou @ 2003-12-01 18:14 UTC (permalink / raw)


It seems that emacs can not display properly a text file with UTF-8 
encoding. Specifically, I do the following:

(1) Create a new buffer with UTF-8 encoding: C-x C-f test.txt
(2) Change the input method to greek: C-u C-\ greek
(3) Write some characters. Everything appears perfectly.
(4) Toggle the input method: C-\
(5) Save the file: C-x C-s
(6) Open the file: C-x C-f test.txt
Now all the greek characters appear as squares.

I am using GNU Emacs 21.3.50.1 (powerpc-apple-darwin7.0.0) under Mac OS 
X 10.3. When I open the file with TextEdit using the UTF-8 encoding and 
everything looks fine in there.

In my .emacs I have

(set-language-environment 'greek)
(set-default-coding-systems 'utf-8)
(prefer-coding-system 'utf-8)

Note also that if I set the proper variables for using iso-8859-7 
everything works great.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-12-05  6:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 12:24 Problem with UTF-8 Konstantinos Efstathiou
     [not found] <mailman.1028.1070539813.399.help-gnu-emacs@gnu.org>
2003-12-05  6:12 ` Oliver Scholz
  -- strict thread matches above, loose matches on Subject: below --
2003-12-04 10:14 Konstantinos Efstathiou
     [not found] <mailman.974.1070458104.399.help-gnu-emacs@gnu.org>
2003-12-03 13:33 ` Oliver Scholz
     [not found] <mailman.849.1070325841.399.help-gnu-emacs@gnu.org>
2003-12-02  9:20 ` Oliver Scholz
2003-12-02 15:49   ` Johan Bockgård
2003-12-02 17:15     ` Jeffery B. Rancier
2003-12-02 19:48       ` Eli Zaretskii
     [not found]     ` <mailman.923.1070389157.399.help-gnu-emacs@gnu.org>
2003-12-02 20:01       ` Oliver Scholz
2003-12-01 18:14 Konstantinos Efstathiou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.