There is a database which writes data to third-party program, the task is to take data from it for reporting. In General, all written and working except for one awkward moment, the table is periodically saved to the text in the wrong encoding, ie it looks something like
a Microsoft PowerPoint Presentation repair
R—R°RRR° RRR±SS SR°СЃС...РѕРґРЅРеРєРе.docx
and treated in the usual transcoding of 1251 to utf.
The fact of how to automatically determine what the text is stored incorrectly but to check it the presence of symbols
? Maybe there's another, more competent method?