Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Octopress发布URL时出现UTF-8字符问题_Url_Utf 8_Jekyll_Octopress - Fatal编程技术网

使用Octopress发布URL时出现UTF-8字符问题

使用Octopress发布URL时出现UTF-8字符问题,url,utf-8,jekyll,octopress,Url,Utf 8,Jekyll,Octopress,我正在从wordpress迁移我的博客,发现了一篇谷歌索引的旧文章,似乎有一个如下形式的URL: http://olddomain.com/old-post-title-%E2%80%93-part-2 您可以在URL中看到%E2%80%93,它显然对应于UTF-8中的某种破折号字符(而不是您的平均'-') 在Jekyll中,仅仅在blogpost标题中添加%E2%80%93似乎不起作用 实际上,我只是在我的url中添加了“-”,然后添加到我的octopress slug中 当我运行rake

我正在从wordpress迁移我的博客,发现了一篇谷歌索引的旧文章,似乎有一个如下形式的URL:

http://olddomain.com/old-post-title-%E2%80%93-part-2
您可以在URL中看到%E2%80%93,它显然对应于UTF-8中的某种破折号字符(而不是您的平均'-')

在Jekyll中,仅仅在blogpost标题中添加
%E2%80%93
似乎不起作用

实际上,我只是在我的url中添加了“-”,然后添加到我的octopress slug中

当我运行
rake preview
时,我得到了一个404(通过在我的
博客档案中的链接进行操作


127.0.0.1---[20/Jul/2013 16:17:53]“GET/blog/2010/12/旧帖子标题-%E2%80%93-part-2/HTTP/1.1”404-0.0009


我能做些什么来修复这个问题呢?

我看到这是一篇老文章,但我也遇到了同样的问题。你有没有碰巧把它修好?