Special characters in Text Source produce invalid state files
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When adding a text annotation using Source -> Text that contains the Greek letter µ, the annotation shows up correctly in the display window. However, saving the state file (example attached) with this source and loading it again yields the error:
===
ERROR: In /tmp/MWInstaller/src/ParaView/VTK/IO/vtkXMLParser.cxx, line 483 vtkPVXMLParser (0x1181585b0): Error parsing XML in stream at line 217, column 34, byte index 9991: not well-formed (invalid token)
Root does not exist. Either state file could not be opened or it does not contain valid xml
===
The problem seems to be that the character "mu" is stored in the state file and the XML loader can't parse this character.
I compiled from git commit 606c3e5c on Mac OS X Snow Leopard, i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3).
Testing notes:
- ParaView, builtin server
- Add Text source
- Set text to µ. Apply.
- Save state.
- Reset session.
- Load previously saved state.
µ should be restored as the text in the Text source.