View Issue Details

IDProjectCategoryView StatusLast Update
0005827JEDI VCL00 JVCL Componentspublic2012-09-10 14:15
ReporterchickenrudiAssigned ToAHUser 
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.46 
Summary0005827: TJvSimpleXML: XMLData gives unreadable characters
DescriptionWhen I try to display the data from TJvSimpleXML by reading it's contents from the property XMLData or the method SaveToString I just get some kind of "chinese" characters. This wasn't always so.

If I save the content from this component to a TStringStream I can eventually use the property DataString to display the xml content.

Attached is a very simple project that should help you to understand what I mean.

Additional InformationDelphi 2010
Windows 7 (64)
TagsNo tags attached.


2012-03-09 21:55 (1,811 bytes)


2012-03-10 19:49

developer   ~0019656

This should be fixed with svn revision 3768.

The problem was that a unicode TStringStream was written to from a TJclAnsiString. So the SaveToStream() method wrote the XML as AnsiString into the stream (1 byte per char) and the SaveToString/SaveToStringEncoding() method read it as a UnicodeString (2 byte per char).


2012-03-10 21:31

reporter   ~0019658

Thank you, everything works fine again.

Issue History

Date Modified Username Field Change
2012-03-09 21:55 chickenrudi New Issue
2012-03-09 21:55 chickenrudi File Added:
2012-03-10 19:49 AHUser Note Added: 0019656
2012-03-10 19:49 AHUser Assigned To => AHUser
2012-03-10 19:49 AHUser Status new => feedback
2012-03-10 21:31 chickenrudi Note Added: 0019658
2012-03-11 20:20 AHUser Status feedback => resolved
2012-03-11 20:20 AHUser Fixed in Version => Daily / SVN
2012-03-11 20:20 AHUser Resolution open => fixed
2012-09-10 14:15 obones Fixed in Version Daily / SVN => 3.46