Parcourir la Source

utf-8 output when writing wordpress imported files

the file writer in wordpress import did not set external-format
Colin M. Strickland il y a 10 ans
Parent
commit
3a37b8339b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      plugins/import.lisp

+ 2 - 1
plugins/import.lisp

@@ -43,7 +43,8 @@
43 43
   (with-open-file (out (merge-pathnames path (or output (repo *config*)))
44 44
                    :direction :output
45 45
                    :if-exists :supersede
46
-                   :if-does-not-exist :create)
46
+                   :if-does-not-exist :create
47
+                   :external-format :utf-8)
47 48
     ;; TODO: What other data/metadata should we write out?
48 49
     (format out ";;;;;~%")
49 50
     (format out "title: ~A~%" title)