• When I use characters such as ??ü or the ‘ character for comments, they seem to be converted to a ascii string. In cases such as the comment character, this breaks the whole diagram.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter simongloor

    (@simongloor)

    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 ); //

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unicode Characters’ is closed to new replies.