all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problems with utf-8 encoding in GNU emacs and Emacs-WiKi
@ 2005-06-19 15:31 Alex Ott
  0 siblings, 0 replies; only message in thread
From: Alex Ott @ 2005-06-19 15:31 UTC (permalink / raw)


Hello all

i have one problm with emacs-wiki with gnu emacs and windows. my wiki is in 
utf-8, default coding systen is cp251. i set file-coding-system-alist for wiki 
directory in utf-8 and files open's normal, but when i use emacs-wiki-find-file, 
then page open's in default encoding, not in utf-8. how i can debug them? 
Problem arise only when find-file called from emacs-wiki

i try to set hook for emacs-wiki (first i try to get help from emacs-wiki list)

(add-hook 'emacs-wiki-mode-hook
           #'(lambda ()
               (set-buffer-file-coding-system 'utf-8)
               ;; changing the encoding causes buffer to appear modified
               (set-buffer-modified-p nil)))


but it does not work for me

p.s. on linux - all works fine.

p.p.s.

In GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600)  of 2004-07-09 on FARIBA


here is exceprts from .emacs

(custom-set-variables
  '(emacs-wiki-charset-default "utf-8")
  '(emacs-wiki-coding-default (quote mule-utf-8-unix))
  '(emacs-wiki-coding-map (quote ((koi8-r "koi8-r") (iso-2022-jp "iso-2022-jp") 
(utf-8 "utf-8") (mule-utf-8 "utf-8") (japanese-iso-8bit "euc-jp") (chinese-big5 
"big5"))))
  '(emacs-wiki-maintainer "mailto:ott@jet.msk.su")
  '(emacs-wiki-meta-content-type "text/html")
  '(file-coding-system-alist (quote (("/work/writings/" . koi8-r) ("/ott/WiKi/" 
. utf-8) ("\\.dz\\'" no-conversion . no-conversion) 
("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" no-conversion . no-conversion) ("\\.tgz\\'" 
no-conversion . no-conversion) ("\\.tbz\\'" no-conversion . no-conversion) 
("\\.bz2\\'" no-conversion . no-conversion) ("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" 
no-conversion . no-conversion) ("\\.elc\\'" emacs-mule . emacs-mule) 
("\\.utf\\(-8\\)?\\'" . utf-8) ("\\(\\`\\|/\\)loaddefs.el\\'" raw-text . 
raw-text-unix) ("\\.tar\\'" no-conversion . no-conversion))))


-- 
With best wishes, Alex Ott
Jet Infosystems,       http://www.jetinfosoft.ru/
                        +7 (095) 411 76 01

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-19 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-19 15:31 problems with utf-8 encoding in GNU emacs and Emacs-WiKi Alex Ott

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.