What I needed was a connection of mojotoads and ChemBoys suggestion. I have not thought that UTF-8 does not take ä etc. With ISO-8859-2 the script does not die. And with this double encoding like " & amp;auml; " the Browser prints out the string I actually wanted.