* utf to iso-latin-8
@ 2006-01-20 16:06 largo-linux
2006-01-20 19:40 ` Stefan Monnier
2006-01-20 20:54 ` Pascal Bourguignon
0 siblings, 2 replies; 3+ messages in thread
From: largo-linux @ 2006-01-20 16:06 UTC (permalink / raw)
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.
any help would be greatly appreciated.
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: utf to iso-latin-8
2006-01-20 16:06 utf to iso-latin-8 largo-linux
@ 2006-01-20 19:40 ` Stefan Monnier
2006-01-20 20:54 ` Pascal Bourguignon
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2006-01-20 19:40 UTC (permalink / raw)
> my question is what is the best way to make sure that my webpages are
> saved as iso-latin-8-dos.
Customize file-coding-system-alist. The regexp can match a directory name,
in which case all the files in that directory will use the specified
coding-system.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: utf to iso-latin-8
2006-01-20 16:06 utf to iso-latin-8 largo-linux
2006-01-20 19:40 ` Stefan Monnier
@ 2006-01-20 20:54 ` Pascal Bourguignon
1 sibling, 0 replies; 3+ messages in thread
From: Pascal Bourguignon @ 2006-01-20 20:54 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-20 20:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-20 16:06 utf to iso-latin-8 largo-linux
2006-01-20 19:40 ` Stefan Monnier
2006-01-20 20:54 ` Pascal Bourguignon
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).