wxStyledTextCtrl and NUL

Hi,

(How) can I write a unicode string containing \u0000 to a wxStyledTextCtrl? I was hoping that the null character would render as the ASCII Mnemonic "NUL" (similar as to what SciTE does for 8-bit files). Now it is regarded as terminator (and everything after it is truncated).

Any pointers much appreciated.

Environment:

wxPython 2.5.2.8u
Python 2.3.4
WindowsXP Professional SP2

···

--
Vincent Wehren

Vincent Wehren wrote:

Hi,

(How) can I write a unicode string containing \u0000 to a wxStyledTextCtrl? I was hoping that the null character would render as the ASCII Mnemonic "NUL" (similar as to what SciTE does for 8-bit files). Now it is regarded as terminator (and everything after it is truncated).

I had thought that my wxString converters would already handle embedded NULLs. I'll check into it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!