0

In Wordpress, when adding a new category with a Chinese/Cyrillic charters i get a slug that looks like %e5%85%ac%e5%af%93 (this is how is saved in Mysql).

How can i convert back this string into original charters (Chinese, Cyrillic , Hebrew etc...)

Crerem
  • 1,289
  • 2
  • 18
  • 45

1 Answers1

0

Isn't PHP's urldecode() enough?

php> echo urldecode('%e5%85%ac%e5%af%93')
公寓
Eric Redon
  • 1,712
  • 12
  • 21