unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: ken <gebser@speakeasy.net>
To: GNU Emacs List <help-gnu-emacs@gnu.org>
Subject: display of ancient Greek chars (after: Re: set UTF-8 for a file (HTML))
Date: Sun, 10 Feb 2008 15:09:59 -0500	[thread overview]
Message-ID: <47AF5A17.4090709@speakeasy.net> (raw)
In-Reply-To: <pcohcghb2rr.fsf@shuttle.math.ntnu.no>

On 02/10/2008 04:04 AM Harald Hanche-Olsen wrote:
> + ken <gebser@speakeasy.net>:
> 
>> I'm editing an HTML file (in emacs, of course) and want to preserve
>> the utf-8 encoding when the file is opened in subsequent sessions.  I
>> know I can put a line at the top of the file which will set a variable
>> in emacs whenever the file is opened.  So what should this line say to
>> specify that the file is encoded in utf-8?
> 
> If you're using HTML mode, just specifying
> 
>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> 
> in the head element of the file should do it.
> 
> Otherwise, a generic method for specifying the coding to emacs is
> having -*- coding: utf-8 -*- in the first line of the file.  You should
> typically protect that by putting in a comment, as follows:
> 
> <!-- -*- coding: utf-8 -*- -->
> 

Thanks, Harald and Peter,

The above is perfect.  On to the subsequent issue....

Prior to doing the above I somehow managed to figure out how to insert a 
word in Greek into my HTML file and have it display properly both in 
emacs and in the web browser.  (This required (1) setting the keyboard 
for inputting Greek and (2) setting some emacs display variable, which I 
no longer recall, also to Greek.)  Though both the Greek and the English 
displayed correctly in emacs when first typed in, after reloading the 
file specifying utf-8, the Greek characters now display in emacs as a 
series of little rectangles.  (They still display fine in the web browser.)

Is there another variable:value pair I can include in the first line 
(specified above) to make the Greek characters display correctly in emacs?


Much appreciated.


-- 
The significant problems we face cannot be solved at the
same level of thinking we were at when we created them.
	-- Albert Einstein





  reply	other threads:[~2008-02-10 20:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7237.1202608828.18990.help-gnu-emacs@gnu.org>
2008-02-10  4:04 ` set UTF-8 for a file (HTML) Tim X
2008-02-10  9:04 ` Harald Hanche-Olsen
2008-02-10 20:09   ` ken [this message]
2008-02-10 23:11     ` display of ancient Greek chars (after: Re: set UTF-8 for a file (HTML)) Peter Dyballa
2008-02-12  0:17       ` ken
2008-02-12  9:25         ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47AF5A17.4090709@speakeasy.net \
    --to=gebser@speakeasy.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).