Dear support,
I have a problem when i try to use french langage. In fact,letters with accents are undetected and are replaced by question marks ?.
please find attached my example of code
CheckResult(recParams->SetPredefinedTextLanguage(CBstr(L"French")));
.....
FILE* f = fopen( fileName , "w+, ccs=UTF-8");
CheckResult(pars->Item(p, &par ));
BSTR parText;
CheckResult(par->get_Text(&parText ));
fwprintf(f,L"%S\n", parText);// to save result in text file
コメント
2件のコメント
Hi
Three questions
- is French included in your ABBYY Finereader license?
- did you notice any errors in log/console/etc. ?
- can you provide a little more of your code?
This should do the trick;
Here is a working sample;
https://forum.ocrsdk.com/thread/extracting-known-blocks-with-minimum-preprocessing/
Best regards
Koen de Leijer
Thanks for your reply.
In fact, i solved the probelem by adding
#include <locale>
int main (){
setlocale(LC_ALL, "");
....
}
サインインしてコメントを残してください。