<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Odb data copied to Calc showed wrong encoding in Windows"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=37859">bug 37859</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>ASSIGNED
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
<td>serval2412@yahoo.fr
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Odb data copied to Calc showed wrong encoding in Windows"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=37859#c36">Comment # 36</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Odb data copied to Calc showed wrong encoding in Windows"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=37859">bug 37859</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>Thank you Urmas and himajin100000, let's give a try with
<a href="https://gerrit.libreoffice.org/#/c/38253/">https://gerrit.libreoffice.org/#/c/38253/</a>
Urmas: I know that's it's a cold case but if you have some time, could you be
more explicit about svl part of
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Odb data copied to Calc showed wrong encoding in Windows"
href="show_bug.cgi?id=37859#c16">https://bugs.documentfoundation.org/show_bug.cgi?id=37859#c16</a> ?
I suppose it concerns Out_Char function and most particularly this part:
130 //If we can't convert to the dest encoding, or if
131 //it's an uncommon multibyte sequence which most
132 //readers won't be able to handle correctly, then
133 //export as unicode
134 OUString sBuf(&c, 1);
135 OString sConverted;
136 sal_uInt32 nFlags =
137 RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR |
138 RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR;
139 bool bWriteAsUnicode =
!(sBuf.convertToString(&sConverted,
140 eDestEnc, nFlags))
141 ||
(RTL_TEXTENCODING_UTF8==eDestEnc); // #i43933# do not export UTF-8 chars in
RTF;
142 if (bWriteAsUnicode)
143 {
144 (void)sBuf.convertToString(&sConverted,
145 eDestEnc, OUSTRING_TO_OSTRING_CVTFLAGS);
146 }
147 const sal_Int32 nLen = sConverted.getLength();
See
<a href="http://opengrok.libreoffice.org/xref/core/svtools/source/svrtf/rtfout.cxx#130">http://opengrok.libreoffice.org/xref/core/svtools/source/svrtf/rtfout.cxx#130</a>
If you confirm, I think it could be interesting to have a bugtracker about this
specific part with a failing case.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>