This question has already been answered:
- Display the string encoding in Perl 1 response
There is a certain string, it needs to be translated into a certain encoding, but for this you need to know what encoding it is in now.
Is there such a possibility? It is enough just to display the string encoding.