Эконом-супер 

What encoding is this string? and how to translate it into readable text?

How can I detect the encoding of strings?

  • cp1251 is kind of like - Hardc0re
  • It can not be cp1251, it has more than 8 bits. Most likely, utf-8, recorded in the decimal system. The first three letters of 'Eco', if I'm right. - therainycat
  • ..... cp936 .... where you took it better tell ....... here it’s written Эконом-супер , just a note) - Alexey Shimansky
  • utf-8 Economy Super - Visman

1 answer 1

These are Cyrillic Unicode characters encoded as HTML entities. You can get the source text using decoding with the html_entity_decode() function

 <?php $str = '&#1069;&#1082;&#1086;&#1085;&#1086;&#1084;-&#1089;&#1091;&#1087;&#1077;&#1088;'; echo html_entity_decode($str); 
  • In my opinion, this is not a UTF-8 encoded HTML entity - Alexey Shimansky
  • This is an HTML representation of UNICODE characters for the Cyrillic, anyway, you have to decode them in UTF-8. symbolcodes.tlt.psu.edu/bylanguage/cyrchart.html - cheops