[Paraview] Dodgy Characters in XML/Python causing failure

Biddiscombe, John A. biddisco at cscs.ch
Wed Dec 14 05:15:50 EST 2011


using pv 3.12 I cannot save state files correctly, and generation of coprocessing scripts also fails because somehow - non ascii (UTF-8) -- characters are getting into strings.

      <Property name="ActiveScalars" id="495.ActiveScalars" number_of_elements="5">
        <Element index="0" value="3"/>
        <Element index="1" value=""/>
        <Element index="2" value=""/>
        <Element index="3" value="ÝÝÝÝÝÝÝÝÝÝÝÝÝ"/>
        <Element index="4" value="Not available"/>
        <Domain name="array_list" id="495.ActiveScalars.array_list">
          <String text="Not available"/>
          <String text="bfield"/>
	.....

The index 3 should read "bfield" - but instead comes out as above. 

I suspect this is an issue caused by Qt. Has anyone else had this problem, and if so, what was the correct (or fastest) fix. The reason I suspect Qt is because any calls to qString::ToStdString() in my code always fail and I have to use toLatin or something and I suspect I've compiled Qt with a wrong option.

thanks

JB



-- 
John Biddiscombe,                            email:biddisco @ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82




More information about the ParaView mailing list