baerrach / gatsby-remark-plantuml

Gatsby Remark parser for PlantUML code blocks
Other
3 stars 4 forks source link

Japanese characters are garbled #9

Closed fni-pj closed 4 years ago

fni-pj commented 4 years ago

コメント 2020-02-28 004712

@startuml
entity "オペレーター\noperators" as operators {
        * **operator_code**: char(10), AUTOINCREMENT
        --
        * **user_id**: bigserial [FK]
        * employee_number: integer, 共通社員番号
        * role: char, オペレーターの役職
        * type: char, L2L3振り分け
        is_leaving: boolean, default: false, 離席中かどうか
        notification_available_delay: boolean, default: true, 対応遅延時通知の ON/OFF
        notification_available_new: boolean, default: true, 新規入信通知の ON/OFF
        notification_available_response: boolean, default: true, 返信時通知の ON/OFF
        delay_notification_time: time, 遅延時通知時間
        max_acceptable_items: smallserial, default: 20, 受可上限値
        created_at: timestamp, default: CURRENT_TIMESTAMP
        updated_at: timestamp, default: CURRENT_TIMESTAMP
        deleted_at: timestamp, default: null
}
@enduml
baerrach commented 4 years ago

http://www.plantuml.com/plantuml/uml/dPBHQnCn7CVV-rU4FMcvuPnlVTeOBGpNLchtf7AaTx_MG2vt9Bbf4M7NqY5Jg3ATR0eosGI7i_gY5NNzOz9qxNzXkkfnKpTnzn1-EVBvvFk5p0c9kGmzcW8cYQoZATNOLyrjrNodcjzKesVMcymFW6FfSp65i43n3jrBePzV6gNJl_xRZkz2Efr1pctCBroUkMYX-ULoSR6mKChciuLo34rFd-130TmcxfYia9hP44pHZTpLMubJu0NKhmFOBFGgm3E8C0aru1RIhO-ZrUsZtKEziNFqR5-tFoSmxbEOvB7GdmLLz5v__pACaeIi1p6nDBjqPV2eenhh-i6QYfx4nuYmAU0Lmcecik-RcLd8XIeEgSoWAgO2B3HwyLft3_hT0nKzLD5R5QsP8LOmNv8gSR0aFhFn2YOKLoZOBb1S_vjKyj0uTUTGzrwEefR--ccmrHWNVxLdQg1YuL8nb_kNdS6Tqzs3pG_3DstTskltTlvNp444FXDmkdtOUsgyPsK-hcwVk40IpoZDQWI_bHuFcninxE6xDdOS2EHn7YB14naaF4pfv44b0itEM4Ytd-jsfzzT7sqzrgkxiSVXW2MuDfQJUuN4Nf1W5vPB9VEKxV9YFdkzF9-_5fDXu9wJDCNXB9A5bARkf-Q0kQ57Vm00

The plantuml online demo server works fine...

image

I suspect its something to do with character encoding between node and the plantuml process running in java. I don't understand why some of the glyphs work but not others.

baerrach commented 4 years ago

Fixed in 0.5.0.

Give it a try

fni-pj commented 4 years ago

Thunk you!

baerrach commented 4 years ago

すみません!