unjs/ufo

support IRI

yuvalkarif opened this issue · 1 comments

Describe the feature

suggestion coming up from nuxt/nuxt#22660. we need support for localized characters in URL paths while still encoding the non relevant characters.

current behavior using encodePath
odkryć => odkry%C4%87

wanted behavior
odkryć => odkryć

Additional information

  • Would you be willing to help implement this feature?
pi0 commented

Thanks for opening issue but it is a spec compliance behavior to make sure URLs are encoded properly and safe to transform.

image