Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 file name #49

Open
ghost opened this issue May 31, 2013 · 1 comment
Open

UTF-8 file name #49

ghost opened this issue May 31, 2013 · 1 comment

Comments

@ghost
Copy link

ghost 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

@ghost
Copy link
Author

ghost 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants