修改插件代码
plantuml-renderer/public/class-plantuml-renderer-public.php
private function encodep( $text ) { //$data = utf8_encode( $text ); //这行注释 $data=$text; //改成这个,text变量本身是utf8编码了,所以不需要转了 $compressed = gzdeflate( $data, 9 ); return $this->encode64( $compressed ); }
[uml]
@startuml
:嘿嘿我是多出来的中文角色:
:Main Admin: as Admin
(Use the application) as (Use)
User -> (Start)
User –> (Use)
Admin —> (Use)
note right of Admin : This is an example.
note right of (Use)
A note can also
be on several lines
end note
note “This note is connected\nto several objects.” as N2
(Start) .. N2
N2 .. (Use)
@enduml
[/uml]
1