How to fix charset?

How to properly detect coding (fix) and change to correct Russian text?
I have a huge text and I would like to fix it.

Đ ŃĐdegвŃŃвŃĐą, Đ ŃŃĐł, по ŃŃ Ń - Pastebin.com