csv - Storing Special Characters titles in update_post_meta in Wordpress -


i have created custom plug-in store user information via csv import. have created custom post types along custom fields. stored in database, except special characters in user name 'Évana '. how overcome problem.

update_post_meta($post_id,'username_name', $line_of_text[1]);

note: have read values csv , converted array. here $line_of_text[1] holds values of user name.

i stored special characters values in post title using htmlentities() function.

http://php.net/manual/en/function.htmlentities.php


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -