api->getutf8text() return unknown encoding result with -l fas

31 views
Skip to first unread message

Mohsen Mirzaie

unread,
May 8, 2017, 2:59:50 PM5/8/17
to tesseract-ocr

I am using tesseract api for persian language. when i call api->getutf8text(), that return unknown encoding string.

    char*outText = api->GetUTF8Text();
String^ result = gcnew String(outText);

for example result is

ابراز داشت: امام رضا برخال� دیگر ائمه با جنگ نرم

also i know fas.traineddata and result are ISO 639-2T but i don't known how tesseract convert utf-8 to ISO-639-2T .

when i am using tesseract.exe in cmd
tesseract.exe test.tiff outputFile -l fas
The result is stored properly in outputFile.txt

Reply all
Reply to author
Forward
0 new messages