Hello All,
I am trying to read an html string stored in a mediumtext type field in (sqlite)
If I copy the string directly, paste it into a file, save it as html as read it, its correct.
But if I read it in B4A, reading it from a resultset to a string, its loses its format.
I get . (dot) in place of CRLF, etc.
I already tried to use textwriter with UTF-8 encoding , getbytes and bytestostring with the html data, nothing.
Is there a way to get around this ?
Examples of the strings
copied From DB field and pasted to notepad++
copied from the resultset and pasted to notepad++
I am trying to read an html string stored in a mediumtext type field in (sqlite)
If I copy the string directly, paste it into a file, save it as html as read it, its correct.
But if I read it in B4A, reading it from a resultset to a string, its loses its format.
I get . (dot) in place of CRLF, etc.
I already tried to use textwriter with UTF-8 encoding , getbytes and bytestostring with the html data, nothing.
Is there a way to get around this ?
Examples of the strings
copied From DB field and pasted to notepad++
B4X:
<div class="row" style="margin-top:50px; margin-bottom: 10px; min-height:0px">
<div class="col-4">
<div style="">
<p style="text-align:left">:__REPORT_MODEL</p>
</div>
</div>
<div class="col-4">
<div style="">
<p style="text-align:center; opacity: 0.5; color:#C9CCD5">:__EXECUTION_NUMBER</p>
</div>
</div>
<div class="col-4">
<div style="">
<p style="margin-right:25px; text-align:right">Página {PAGENO} de {nb}</p>
</div>
</div>
</div>
copied from the resultset and pasted to notepad++
B4X:
<div class="row" style="margin-top:50px; margin-bottom: 10px; min-height:0px">. <div class="col-4">. <div style="">. <p style="text-align:left">:__REPORT_MODEL</p>. </div>. </div>. . <div class="col-4">. <div style="">. <p style="text-align:center; opacity: 0.5; color:#C9CCD5">:__EXECUTION_NUMBER</p>. </div>. </div>. . <div class="col-4">. <div style="">. <p style="margin-right:25px; text-align:right">Página {PAGENO} de {nb}</p>. </div>. </div>. </div>