In some cases the text contains html character entities (e.g. &
) Visio visual basic macros properly return the unicode text, but aspose sometimes doesn’t. It would be nice to have getDisplayText() to perform a html unescape, so the two outputs (aspose and visio) are consistent.
Visio version: MS Visio Professional 2016
Aspose.Diagram version (Java): aspose-diagram-22.10
I’ve attached an example file, you can check the text from visio with the following Visual Basic macro (select the shape in visio - e.g. with mouse or in drawing explorer - before running the script).
Sub GetNameU()
Set sel = ActiveWindow.Selection
sel.IterationMode = 0
Set shp = sel.PrimaryItem
Debug.Print shp.Text
End Sub
- wrong_displaytext_encoding.vsd
- id: 814
- correct Text: M&B
- aspose DisplayText: M&B
Thanks for the previous set of fixes.
wrong_displaytext_encoding.zip (13.2 KB)