Title: Unicode Characters
Last modified: July 30, 2020

---

# Unicode Characters

 *  [simongloor](https://wordpress.org/support/users/simongloor/)
 * (@simongloor)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/unicode-characters-8/)
 * 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](https://wordpress.org/support/users/simongloor/)
 * (@simongloor)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/unicode-characters-8/#post-13191710)
 * 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 );	//
       ```
   
 *  [vigl](https://wordpress.org/support/users/vigl/)
 * (@vigl)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/unicode-characters-8/#post-13492325)
 * 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/](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.

 * ![](https://ps.w.org/plantuml-renderer/assets/icon.svg?rev=1651274)
 * [PlantUML Renderer](https://wordpress.org/plugins/plantuml-renderer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plantuml-renderer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plantuml-renderer/)
 * [Active Topics](https://wordpress.org/support/plugin/plantuml-renderer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plantuml-renderer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plantuml-renderer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [vigl](https://wordpress.org/support/users/vigl/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/unicode-characters-8/#post-13492325)
 * Status: not resolved