Browse Source

org-freemind.el: Encode multibyte characters to unicode

Patch by Tokuya Kameshima.
Carsten Dominik 15 years ago
parent
commit
54889df12d
2 changed files with 5 additions and 1 deletions
  1. 4 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-freemind.el

+ 4 - 0
lisp/ChangeLog

@@ -1,3 +1,7 @@
+2009-11-17  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-freemind.el (org-freemind-escape-str-from-org): Fix encoding.
+
 2009-11-17  Eric Schulte  <schulte.eric@gmail.com>
 
 	* org-exp-blocks.el (org-export-blocks-format-ditaa): Use sha1

+ 1 - 1
lisp/org-freemind.el

@@ -240,7 +240,7 @@ The characters \"&<> will be escaped."
                       ;; file is utf-8:
                       ;;
                       ;; (format "&#x%x;" (- cc ;; ?\x800))
-                      (char-to-string cc)
+		      (format "&#x%x" (encode xx 'ucs))
                       ))))
     fm-str))