When I use special characters in the permalink of a post, the post cannot be found and I receive a 404 error. This holds even if I use encoded characters. For example, permalink: /%da%86%d8%b1%d8%a7/ results in 404 error too (this encoding is from my WordPress site, which I am considering to migrate to Jekyll, and I want to keep the URLs to avoid SEO problems).
Thank you for your reply.
URL redirects will be the workaround if I cannot succeed with this method.
This happens locally, not on a server.
In the _site folder, for this special post, it creates a folder and inside it, it creates an index.html file. It seems the problem is this extra folder. Other posts with usual English names have an html file in the _site's root.
thats normal, most web servers will know to serve the index doc out of the folder - my questions was more of what is the folder name - is it encoded or not? I’m not sure where I am going with that, just trying to suss it out.
how are you trying to use the url? like mysite.com/mypost or mysite.com/mypost/ the trialing slash is important and is what tells the server to serve the index doc inside. If you are trying to do it without the trailing slash then that is likely your problem, but that can be fixed on the web server depending on how you host it.