I changed post_title, post_contents, and post_name to allow for utf by changing collating sequence to: utf8_general_ci

Then using add new post, I type for the title three Hebrew ALEFs.
The post_title is in Hebrew in the database, but the post_name has this value:


According to Charmap, ALEF has a hex value of 05D0.
So what does the d790 represent? Some other encoding?

I'm looking to write a program to mass upload a bunch of posts, so I need to know what to put in the post_name field, and what it is used for.

1 Answer 1


it's the URL encoded version of your text.

echo urldecode('%d7%90%d7%90%d7%90');



post_name is the slug, so the characters have to be URL-safe.

  • But wouldn't the encoded hex have to match what CharMap.exe shows? Feb 26, 2012 at 18:35
  • And I'm storing the Hebrew words in a custom post type which will be used accessed via ShortCodes on real "pages", so if I never intend to display the page, can I leave the post_name null? Feb 26, 2012 at 18:41
  • @NealWalters - it's not hexadecimal encoding, it's a different format.
    – Milo
    Feb 26, 2012 at 18:41
  • @NealWalters - you probably can leave them null, I've never tried though, so not sure what other side effects that may have.
    – Milo
    Feb 26, 2012 at 18:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.