Next.js Discord

Discord Forum

cyrillic characters using `useParams`

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

2 Replies

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