Next.js Discord

Discord Forum

cyrillic characters using `useParams`

Answered
piscopancer posted this in #help-forum
Open in Discord
Avatar
const params = useParams<TSearchPage['params']>()
Image
Answered by piscopancer
alright, there is a global function decodeURI(str) for this
View full answer

2 Replies

Avatar
I know slugs are not supposed to be cyrillic, but do I have to convert this weird string back to cyrillic afterall?
Avatar
alright, there is a global function decodeURI(str) for this
Answer