skuro / plantuml-mode

A major mode for editing PlantUML sources in Emacs
GNU General Public License v3.0
511 stars 96 forks source link

plantuml-server-preview-string: Multibyte character in data for base64 encoding #110

Closed darcylee closed 4 years ago

darcylee commented 5 years ago

Summary

use server exec-mode, when there has cjk byte in uml source code, like chinese, Japanese. then < c-c c-c > preview get this error

plantuml-server-preview-string: Multibyte character in data for base64 encoding

I just get this message https://lists.gnu.org/archive/html/help-gnu-emacs/2012-04/msg00173.html

I change base64-encode-string like this :(base64-encode-string (encode-coding-string string 'utf-8-unix) t) it is work fine for me.

skuro commented 5 years ago

@darcylee thank you for the bug report and the initial investigation. would you be able to test out pull request #111?

darcylee commented 5 years ago

@darcylee thank you for the bug report and the initial investigation. would you be able to test out pull request #111?

still have problems

@startuml
Bob -> Alice : 信息集合
@enduml

preview like this:

image

@startuml
Bob -> Alice : 銀行システム
@enduml

image

But in this cace it seems to be correct

@startuml Bob -> Alice : 人民银行 @enduml

image

skuro commented 5 years ago

Mhhh it seems like some more work needs to be done on encoding to make plantuml-server happy