<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi guys,</p>
<p><br>
</p>
<p>I just noticed that when adding strings that contain null characters ('\0') using the
<b>setText</b> method,</p>
<p>QScintilla cuts off the string at the first null character it finds. To be sure I opened the same text saved</p>
<p>to a file with Notepad++ and SciTE and there the null characters appear.</p>
<p><br>
</p>
<p>Is this a bug or should strings with null characters be handled differently?<br>
</p>
<p>I used this example to for testing:</p>
<blockquote>
<p><i></i><span><b>qscieditor.setText("Test\nText\nIn\n\0An\nQscintilla\nEditor")</b></span><i><span></span></i><br>
</p>
</blockquote>
<p><br>
</p>
<p>Thanks,</p>
<p>Matic<br>
</p>
</div>
</body>
</html>