Non-Latin characters encoding issue

MomenYasser
0
MomenYasser
commented a year ago

Version

v5.1.1

Reproduction link

https://github.com/MomenYasser/nuxt-i18n-non-encoding-issue

Steps to reproduce

1- git clone https://github.com/MomenYasser/nuxt-i18n-non-encoding-issue
2- npm install
3- npm run dev
4- go to http://localhost:3000/about
5- Check your terminal

What is expected ?

Expected to encode Non-Latin characters in URL like Arabic

What is actually happening?

I got this error

{ statusCode: 404,
path: '/ar/%D8%B9%D9%86%D8%A7',
message: 'This page could not be found' }

[nuxt-i18n] Locale ISO code is required to generate alternate link

bug
0
hinex
0
hinex
commented 10 months ago

It's fixed on https://github.com/nuxt-community/nuxt-i18n/pull/145
Try to latest version v5.4.4

0
adi-zz
21
adi-zz
commented 7 months ago

Still/again not working, using nuxt 2.5.1 + nuxt-i18n 5.8.5, as can be reproduced using a codesandbox I created:

0
rchl
373
rchl
commented 5 months ago

@adi-zz you can set encodePaths: false to disable path encoding.

It's probably still a bug but there is a workaround at least.

0
rchl
373
rchl
commented 5 months ago

For reference: encoding of paths was added to fix #7

0
gokhancetiner
0
gokhancetiner
commented 5 months ago

Hello,

Do you have a target date to fix bug that is mentioned by @adi-zz ?

0
Informations
Bug ReportOpen
#c122 - Created a year ago