You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using your lib in a asp.net project. When I use following code, the engine isn't functioning:
engine.SetVariable("tessedit_char_whitelist", "一些中文");
It seems like the tesseract's DLL only accept UTF-8 chars, but the .NET lib can only feed Unicode chars.
I tried to add a "ReadConfigFile" function to the .NET wrapper, it works. Since the config file is UTF-8 encoded.
So I suggest to add a function like "ReadConfigFile" or to fix the SetVariable function's bug, let it read utf-8 chars correctly (which seems a little harder).
BTW: Thanks for you lib.
The text was updated successfully, but these errors were encountered:
I've fixed this in the 3.03 branch for the upcoming 1.1 release. Note I haven't added a thorough test case yet only made sure you can send a UTF8 string to tesseract and that you get back the same value when calling TryGetStringVariable.
I tried using your lib in a asp.net project. When I use following code, the engine isn't functioning:
engine.SetVariable("tessedit_char_whitelist", "一些中文");
It seems like the tesseract's DLL only accept UTF-8 chars, but the .NET lib can only feed Unicode chars.
I tried to add a "ReadConfigFile" function to the .NET wrapper, it works. Since the config file is UTF-8 encoded.
So I suggest to add a function like "ReadConfigFile" or to fix the SetVariable function's bug, let it read utf-8 chars correctly (which seems a little harder).
BTW: Thanks for you lib.
The text was updated successfully, but these errors were encountered: