[Python.NET] Passing .NET strings containing " to Python.NET

Brian Lloyd brian at zope.com
Fri Dec 3 16:52:12 CET 2004

> When sending an XML string containing another XML string, any
> occurrences of
> " will cause the reminder of the string to be cut off. Replace
> any " with ?
> and the entire string is received. The curious thing is, this
> only happens
> when sending from C++/C# to the Python side. Sending the string the other
> way does not produce the same symptom.
> Ideas, anyone? Can the translation from a DotNet string to a
> Python string
> make this happen?

Hi Torleif,

The translation of strings is based on .NET's idea of the length
of the string, and shouldn't ever be affected by the content of
the string one way or the other.

This is a total guess, but I'd suspect that there is some subtle
escaping problem at the application layer on one side or the

Brian Lloyd        brian at zope.com
V.P. Engineering   540.361.1716
Zope Corporation   http://www.zope.com

More information about the PythonDotNet mailing list