-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DownloadResults with ZERO WIDTH NO-BREAK SPACE #52
Comments
I assume that you're describing the following scenario:
In this case the |
Yes thanks for the reply, that's exactly it! After further research I found that there is an old known bug in Java, it can't deal with BOMs automatically, making it necessary to remove it manually. http://bugs.java.com/view_bug.do?bug_id=4508058 It would be good if you could change the sample code to incorporate that. https://github.com/abbyysdk/ocrsdk.com/blob/master/Android/src/abbyy/ocrsdk/android/ResultsActivity.java Apache Commons IO for instance provides a BOMInputStream |
Which |
TXT Format: |
Where's the |
It's |
Hi
We've been using the Android sample code to communicate with ABBY OCR. But we noticed that in the plain/text result of the
downloadResults
request at the beginning of the text there's always a ZERO WIDTH NO-BREAK SPACE (U+FEFF) character that we had to remove.Why is that character in the response?
Our current "solution" is to remove the character in the
ResultsActivity
contents.toString().replaceFirst("\uFEFF", "")
The text was updated successfully, but these errors were encountered: