Instead of selecting the first encoding returned by ucsdet_detectAll (except the 5 CJK when they have confidence of 10), recalculate confidence by removing 10 only when one of the 5 CJK encodings then check each encoding returned by ucsdet_detectAll and select the one with the max confidence with this new rule. I also tested this again on tdf#172905, no regression. Change-Id: I6a8e2b30e8467fefd53c02296484e48ca467c662 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209143 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Old Tools (Deprecated)
Predates sal - string functions, url manipulation, stream stuff, polygons, etc.
Exact history is lost before Sept. 18th, 2000, but old source code comments show that part of the tools library dates back until at least April 1991.