plantuml-previewer.vim icon indicating copy to clipboard operation
plantuml-previewer.vim copied to clipboard

Accents not well printed

Open BobMorane22 opened this issue 2 years ago • 0 comments

Issue

When using accentuated characters, the resulting diagram text does not display these characters appropriately: image instead of: image Using accents in participants, in this case, makes it impossible to render the image altogether.

Setup

Using Vim8 on Windows 10. The text file where the diagram is coded is encoded in UTF-8.

Steps to reproduce

  1. Create a new file using netrw.
  2. Code the diagram, using at least one accentuated character.
  3. Use either PlantumlOpen or PlantumlSave to see the above result.

Possible solution

There exists an option for PlantUML to specifiy the charset. I have patched the plug-in successfully (for my case only) by using it:

-charset UTF-8

May be the "charset" could be automatically applied from the file's encoding, but I am no expert, this is only a suggestion.

Source : https://plantuml.com/unicode

BobMorane22 avatar Nov 21 '23 12:11 BobMorane22