## wordpress shortcode url decode non Latin character

Question

I am using a shortcode to call some posts with a permalink using non Latin characters.

However the urls get percent encoded ( showing up as %20%regfd etc)
What is the best way to make sure urls are decoded in the front?

I noticed then adding some space before the link, the urls also shows up decoded. But I don’t think this is the best solution.

<a href=" '.\$url.'">