Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Charset Problems when sending to database

Avatar

Level 1

Hi everyone,

I have a form connected to a mysql database (via a php file). People fill out the form and send the values via a button to the database. Works just fine, but when it comes to special characters like German ÖÄÜ it saves values like ü in the database. I have no idea what charset livecycle is using by standard (utf_8?) and how to change that.

any ideas?

Thanks for helping out

2 Replies

Avatar

Level 2

Hi,

via php means you're sending to some url using "HTTP button"?

If so, try using normal button and set control type to "Submit", then you should have selection of which charset is going to be used in "Submit" tab.

Avatar

Level 1

Found the solution:

In the php script that processes the data I had to insert this line:

mysql_query("SET NAMES 'UTF8'");

now it works like charm...