wezetel
Active Member
I have an alpha-register and using the first letter of a field. To get the first letter I'm using a calc element. But as soon as the first letter is a German Umlaut I get following error message:
I therefore tried following code to replace the Umlaut before it will be stored:
$buchstabe= strtoupper(substr('{dienstleistungen___dienstleistung}', 0, 1));
switch ($buchstabe){
case "Ä": $buchstabe = "A";return $buchstabe;
case "Ö": $buchstabe = "O";return $buchstabe;
case "Ü": $buchstabe = "U";return $buchstabe;
default:return $buchstabe;
}
But the error remained. Any idea, what I'm doing wrong?
I therefore tried following code to replace the Umlaut before it will be stored:
$buchstabe= strtoupper(substr('{dienstleistungen___dienstleistung}', 0, 1));
switch ($buchstabe){
case "Ä": $buchstabe = "A";return $buchstabe;
case "Ö": $buchstabe = "O";return $buchstabe;
case "Ü": $buchstabe = "U";return $buchstabe;
default:return $buchstabe;
}
But the error remained. Any idea, what I'm doing wrong?