help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: utf to iso-latin-8


From: Pascal Bourguignon
Subject: Re: utf to iso-latin-8
Date: Fri, 20 Jan 2006 21:54:55 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"largo-linux" <joelvsmith@earthlink.net> writes:

> I use emacs 21.3 and fedora 4.  the default coding system is utf-8...
> i use earthlink as my ISP provider and for my personal webpage.
> unfortuately earthlink does not support utf so any html pages that
> contain accented characters and set in utf will be rendered with
> garbled characters.  sometimes i can re-save my html pages with c-x RET
> f iso-latin-8-dos and the page will load but sometimes emacs will
> ignore this and keep it as utf.
>
> my question is what is the best way to make sure that my webpages are
> saved as iso-latin-8-dos.

Latin-8 = iso-8859-14

Put the following in ~/.emacs:

(setq default-buffer-file-coding-system 'iso-8859-14-dos))
;; if you want iso-8859-14 for all documents.


(modify-coding-system-alist 'file "\\.html\\'" 'iso-8859-14-dos)
;; if you want it only for .html files.


> any help would be greatly appreciated.

Normally, the web server doesn't mind the encoding. Did you put a:

  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

tag in your <HEAD> section?


If you convert them to iso-8859-14, mind changing the meta tag as:

  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-14">


> BTW.  i use blogmax to generate the html pages from txt.  is there a
> way to configure blogmax to produce html only in iso-latin-8?

Don't know.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
Small brave carnivores
Kill pine cones and mosquitoes
Fear vacuum cleaner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]