<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE XLS Cyrillic (Russian) characters inserted by macro appear as question marks"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=75263#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE XLS Cyrillic (Russian) characters inserted by macro appear as question marks"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=75263">bug 75263</a>
from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
<pre>LibreOffice reads PROJECTCODEPAGE record [1] (in this file it's Windows-1251)
in VbaProject::readVbaModules (oox/source/ole/vbaproject.cxx). It uses the
codepage to decode the strings in the project, but then forgets the value, and
when writing, uses hard-coded Win-1252, naturally turning everything not
representable in that codepage into question marks.
Code pointer: writePROJECTCODEPAGE in oox/source/ole/vbaexport.cxx.
[1] [MS-OVBA] sect. 2.3.4.2.1.4
<a href="https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/575462ba-bf67-4190-9fac-c275523c75fc">https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/575462ba-bf67-4190-9fac-c275523c75fc</a></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>