[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Garbled characters in links
From: |
Yamagata Yoriyuki |
Subject: |
[emacs-wiki-discuss] Garbled characters in links |
Date: |
Fri, 31 Dec 2004 01:45:39 +0900 (JST) |
Hi,
I have upgraded my emacs-wiki to 2.66. Unfortunately, all Japanese
character in anchored text were got garbled.
The problem seems to occur because Emacs uses its own numerical
codings for non-ascii characters, and we need to convert them to
UCS. The following patch fixes the problem for me. (char-to-ucs is
defined in mule-ucs package)
But since mule-ucs is a very large package, we may want a different
solution.
--- orig/emacs-wiki-publish.el
+++ mod/emacs-wiki-publish.el
@@ -1252,9 +1252,7 @@
"/:address@hidden")
str pos))
;; Work around XEmacs differentiation of char and int
- (setq code (if (fboundp 'char-to-int)
- (int-to-string (char-to-int (aref str pos)))
- (int-to-string (aref str pos)))
+ (setq code (int-to-string (char-to-ucs (aref str pos)))
len (length code)
str (replace-match (concat "&#" code ";") nil nil str)
pos (+ 3 len pos)))
--
Yamagata Yoriyuki
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [emacs-wiki-discuss] Garbled characters in links,
Yamagata Yoriyuki <=