Decoding a url-encoded windows-1251 (cp1251) string with JavaScript
问题 I have faced a problem, unfortunately, I have not found a correct solution: I need to decode url-slice that is encoded with windows-1251 (cp1251). I know there are theese methods - decodeURI() and decodeURIComponent() , but they work for UTF-8 only (as I have understood). A solution that I found uses deprecated methods escape() and unescape(). For example, there is sequence: %EF%F0%EE%E3%F0%E0%EC%EC%E8%F0%EE%E2%E0%ED%E8%E5 (программирование) The methods decodeURI() and decodeURIComponent()