<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - infilter Parameter does not use entered encoding (CP850)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=128673#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - infilter Parameter does not use entered encoding (CP850)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=128673">bug 128673</a>
from <span class="vcard"><a class="email" href="mailto:alonso@loria.fr" title="osnola <alonso@loria.fr>"> <span class="fn">osnola</span></a>
</span></b>
<pre>The current code is in
core/writerperfect/source/writer/MSWorksImportFilter.cxx, function
MSWorksImportFilter::doImportDocument which tries to open a dialog which asks
the user for the file's encoding. If this fails, libwps is called with no
encoding => libwps/src/lib/DosWord.cpp tried to find a reasonable encoding
based on the file's codepage (but this is only a heuristic).
Notes:
- I suppose that we can use the argument utl::MediaDescriptor to retrieve the
encoding (and if a encoding is found, use it and do not open a dialog) but I am
not sure how to do that. Maybe we can take some inspiration from
core/writerperfect/source/writer/EBookImportFilter.cxx...
- if someone knows how to modify this function, a similar problem will exist in
writerperfect/source/calc/MSWorksCalcImportFilter.cxx, so
MSWorksCalcImportFilter::doImportDocument will have to be modified similarly.</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>