GeoDirectory SupportEntering french characters in custom fields – GeoDirectory Support https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/feed Wed, 04 Feb 2026 09:09:27 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12626 <![CDATA[Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12626 Tue, 19 Aug 2014 23:41:34 +0000 TØm Babwá Hi there,

I’m french and I work on a beer project with geo directory. I have to say the plugins are very awesone.

However, there is some few problem with french character like “à”, “é”, “è” etc… Then, french people have often used this character.

3 days ago, I got the same problem than Tony. I fix it creating one more time CPT with the same slug and don’t use special character in “Singular Name”.

Today, I’m meeting another problem. If I create a place with special characters, custom fields stay empty when I save it. It’s embarassing because people can’t add place with special characters (eg. Boite à Bière).

A fix would be to put an htmlentities function in the field recording. I would need to know where I can add this function ? Could you help me ?

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12653 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12653 Wed, 20 Aug 2014 11:17:00 +0000 Guust Hi Tom, I split your topic from https://wpgeodirectory.com/support/topic/creating-a-new-custom-post-type-bug

I alerted Stiofan for you.

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12680 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12680 Wed, 20 Aug 2014 14:48:49 +0000 TØm Babwá Thank you Guust !

To resume, GD don’t like french characters in :
– CPT Singular name
– Listing name

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12682 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12682 Wed, 20 Aug 2014 14:54:36 +0000 Stiofan O'Connor Hi Tom,

I tested and it seemed to work fine, see here: http://ppl.directory/places/united-kingdom/dumfries-and-galloway/thornhill/attractions/boite-a-biere/

Can you let me know a way i can replicate you problem.

Thanks,

Stiofan

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12685 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12685 Wed, 20 Aug 2014 15:26:20 +0000 TØm Babwá I will do more test and I will give you more information ;).

I’m scared to use special character since I crash the website with the CPT bug.

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12714 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12714 Wed, 20 Aug 2014 21:17:20 +0000 Guust Tom, if you are worried, just backup your database first. Then you can go back.

I attach a screenshot of my test site, and have a look at this URL as well:
http://goldroo.net/kolacica/australia/queensland/brisbane/health/bolgen-moi-hovikodden/

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12722 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12722 Wed, 20 Aug 2014 23:00:03 +0000 TØm Babwá Ok, I think I make a mistake. There is no problem with special character in Listing Name !

I find a problem with Facebook URL.
Cette URL ne passe pas dans le champ “Facebook” : https://www.facebook.com/pages/La-Capsule-Cave-%C3%A0-Bi%C3%A8re/245700975494863

I’m thinkink the problem come from Facebook URL encoding for special characters.

GD don’t like the % maybe ?

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12749 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12749 Thu, 21 Aug 2014 19:17:38 +0000 Stiofan O'Connor ok found the problem, it was % were not being escaped before wpbd->prepare and breaking things.

I have added the fix and it will be in the next version.
to fix now please edit geodirectory-functions/post_functions.php line 444

Add this:

$post_meta_set_query = str_replace('%', '%%',  $post_meta_set_query);// escape %

so the surrounding lines are this:


$post_meta_set_query = trim($post_meta_set_query,", ");

		$post_meta_set_query = str_replace('%', '%%',  $post_meta_set_query);// escape %
		
		do_action('geodir_before_save_listinginfo',$postinfo_array, $post_id);

Thanks,

Stiofan

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12757 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12757 Thu, 21 Aug 2014 19:47:47 +0000 TØm Babwá Thanks for the fix Stiofan !

]]>
https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12782 <![CDATA[Reply To: Entering french characters in custom fields]]> https://wpgeodirectory.com/support/topic/entering-french-characters-in-custom-fields/#post-12782 Thu, 21 Aug 2014 21:43:41 +0000 Stiofan O'Connor You are welcome! 🙂

]]>