UTF-8 file name #49

Open
usharf opened this Issue May 31, 2013 · 1 comment

Comments

Projects
None yet
1 participant

usharf commented May 31, 2013

Is it possible to make wheat route correctly when storing articles in files with utf-8 chars? Rendering of the index pages works, but routing (I guess at wheat/wheat.js) will fail with "404" not-found...

  • I don't mean the content, rather the actual file name for the article

    GET /%D7%98%D7%A1%D7%98 404 Content-Type=text/plain
    GET /%D7%98%D7%A1%D7%98 404 Content-Type=text/plain

usharf commented May 31, 2013

It works with this patched router (wheat.js):

addRoute(/^/()([\u0590-\u05FFa-z0-9_-]+)$/, Renderers.article); // include hebrew chars
...
var match = decodeURIComponent(url.pathname).match(route.regex);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment