nextra icon indicating copy to clipboard operation
nextra copied to clipboard

When the name of file is not a english it makes error.

Open omnyx2 opened this issue 1 year ago • 2 comments

When title is not english, I'm using the Korean, It occurs error can't render. It can't handle such as "쿠버네티스를 공부하는 법.mdx". Like when it's not english then encoding happens and the automatic mdx engine can't read and create article. http://localhost:3000/SLAM/%EB%B8%94%EB%A1%9C%EA%B7%B8

omnyx2 avatar Aug 01 '24 12:08 omnyx2

Nice to meet you, Nextra user from Korea!

I built Nextra pages with files in languages other than English using the following method:

  • First, before the Nextra build, I use a Node script during the prebuild phase to encode the file names in the path using JavaScript’s encodeURIComponent.
  • Then, I build Nextra.

I confirmed through testing that this method successfully loads pages in Nextra. 😃

ori-kim avatar Aug 01 '24 14:08 ori-kim

@ATeals pr welcome for v3

dimaMachina avatar Sep 02 '24 23:09 dimaMachina

I find this feature useful, why isn't it supported?

lsj162 avatar Jan 08 '25 04:01 lsj162

This is not a Nextra issue 🤦

URLs are ASCII. If your filename contains characters that are not ASCII characters than you can't use it for a URL.

URLs can only be sent over the Internet using the ASCII character-set.

lacymorrow avatar Jan 10 '25 19:01 lacymorrow