Japanese URLs in Redirects

I am trying to migrate from Notion/Super to micro.blog and am trying to map Japanese URLs with a redirect, but it seems like URLs with Japanese characters, either URL-encoded or raw, don’t work. Does micro.blog not handle foreign characters? Can this be fixed?

URL examples: /blog-post/スキモノムスヒ数寄者の道に触れて or /blog-post/%e3%82%b9%e3%82%ad%e3%83%a2%e3%83%8e%e3%83%a0%e3%82%b9%e3%83%92%e6%95%b0%e5%af%84%e8%80%85%e3%81%ae%e9%81%93%e3%81%ab%e8%a7%a6%e3%82%8c%e3%81%a6

Yeah, that’s right, Micro.blog doesn’t handle Unicode characters outside of the ASCII range very well in URLs. It’s fine to use Japanese characters in the actual blog posts, though.

@manton will have to answer whether he’d like to add support for Unicode characters in URLs.

If you’re comfortable with web development and okay with using client-side redirects via meta refresh and/or JavaScript, you can set that up as a workaround.

Another “Rube Goldberg solution” is to put your blog behind a reverse proxy, like Cloudflare, and perform the redirects from there.

Thanks!

I tried this the redirect, but I’m not sure I did it right. The way I did it doesn’t seem to be working.

I think I have this fixed now for redirects. You should be able to add a redirect under Pages → “New Redirect” and Japanese will work in the “From path” field. Thanks!

1 Like

Thanks!