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:

%d7%90%d7%90%d7%90

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.

<?php
echo urldecode('%d7%90%d7%90%d7%90');
?>

outputs:

אאא

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

Leave a Reply

Your email address will not be published. Required fields are marked *