Tag: elisp

在emacs:utf-8问题中使用url elisp包创建POST

我目前正在创建一个Rest客户端,用于以pastie.el的精神制作博客文章。 主要目标是让我在emacs中编写一个纺织品,然后发布一个创建它的Rails应用程序。 它工作正常,直到我输入任何西class牙语或日语,然后我得到500错误。 pastie.el也有同样的问题。 这是代码: (要求’url) (defun create-post() (interactive) (let ((url-request-method “POST”) (url-request-extra-headers ‘((“Content-Type” . “application/xml”))) (url-request-data (concat “” “” “” “Not working with spanish nor japanese” “” “” ;; “日本語” ;; not working ;; “ñ” ;; not working either “h1. Textile title\n\n” “*Textile bold*” “” “”)) ) ; end of let varlist (url-retrieve “http://127.0.0.1:3000/posts.xml” […]