plantuml-previewer.vim
plantuml-previewer.vim copied to clipboard
Accents not well printed
Issue
When using accentuated characters, the resulting diagram text does not display these characters appropriately:
instead of:
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
- Create a new file using
netrw. - Code the diagram, using at least one accentuated character.
- Use either
PlantumlOpenorPlantumlSaveto 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