Forums / Developer / Charset problems in script / Comment47832
Arno Bouwens
Monday 08 September 2008 7:49:05 am
I had exactly the same problem as described above. The solution that worked for me was to use the php-function utf8_encode().e.g.:
$contentObjectAttribute->setAttribute( 'data_text', utf8_encode($firstname));
instead of simply:
$contentObjectAttribute->setAttribute( 'data_text', $firstname);