Okay… fixed it.
I added this in class-plantuml-renderer-public.php after line 70.
I would have pushed it to a git repository, but I couldn’t find one.
$new_content = str_replace( '‘','\'',$new_content ); //
$new_content = str_replace( '…','...',$new_content ); //
$new_content = str_replace( 'Ä','Ä',$new_content ); //
$new_content = str_replace( 'Ö','Ö',$new_content ); //
$new_content = str_replace( 'Ü','Ü',$new_content ); //
$new_content = str_replace( 'ä','ä',$new_content ); //
$new_content = str_replace( 'ö','ö',$new_content ); //
$new_content = str_replace( 'ü','ü',$new_content ); //
$new_content = str_replace( '<br />',PHP_EOL,$new_content ); //
Thank you very much for the solution.
The solution works but I had to change the second character to the unicode-code.
List is here: https://resources.german.lsa.umich.edu/schreiben/unicode/
Example:
$new_content = str_replace( ‘Ä’,’replace this’,$new_content ); //