Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5241 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi,

I have a problem with the Filemaker PHP API. I want to get the content of a value list. I'm using the following code :

$layout =& $fm->getLayout('my_template');

$list = $layout->getValueList('my_list');

The list is imported successfully, however there are issues concerning special characters (accented letters etc...).

For example :

"Chargé de mission" will get imported as "ChargChargé de mission".

"Animateur du réseau numérique" will get imported as "Animateur du rAnimateur du réseau numérique".

When the first special character is encountered, the string is reloaded from the beginning and concatenated with what was already imported.

This happens only one time per string (not again for the next accented letters).

Is there any way to solve this ?

Thanks for your help !

Posted (edited)

Try:


$layout = $fm->getLayout('my_template');

$list = array_map("htmlentities",(array)$layout->getValueList('my_list'));

Edited by Guest

This topic is 5241 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.