<div dir="ltr">Есть строка, без флага utf8.<div>Utf8-консоль отображает строку зюками.</div><div><code class="" style="font-size:12px;background-color:rgb(245,245,245);white-space:pre;font-family:inherit!important;padding:0px!important;color:black!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;height:auto!important;margin:0px!important;outline:0px!important;overflow:visible!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">decode(</code><code class="" style="font-size:12px;background-color:rgb(245,245,245);white-space:pre;font-family:inherit!important;padding:0px!important;color:blue!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;height:auto!important;margin:0px!important;outline:0px!important;overflow:visible!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">"Detect"</code><code class="" style="font-size:12px;background-color:rgb(245,245,245);white-space:pre;font-family:inherit!important;padding:0px!important;color:black!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;height:auto!important;margin:0px!important;outline:0px!important;overflow:visible!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">, </code><code class="" style="font-size:12px;background-color:rgb(245,245,245);white-space:pre;font-family:inherit!important;padding:0px!important;color:rgb(170,119,0)!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;height:auto!important;margin:0px!important;outline:0px!important;overflow:visible!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">$data</code><code class="" style="font-size:12px;background-color:rgb(245,245,245);white-space:pre;font-family:inherit!important;padding:0px!important;color:black!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;height:auto!important;margin:0px!important;outline:0px!important;overflow:visible!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">);   не  угадывает.</code><br></div><div><br></div><div><font color="#000000"><span style="font-size:12px;white-space:pre;background-color:rgb(245,245,245)">Как правильно перевести в utf8?</span></font></div><div><br></div><div>Где взять массив всех возможных <span style="background-color:rgb(245,245,245);color:rgb(0,0,0);font-family:Menlo,Monaco,'DejaVu Sans Mono',Consolas,'Bitstream Vera Sans Mono',Courier,'Courier New',monospace;font-size:12px;white-space:pre">ENCODING</span>, чтобы переводить из них в utf8 и смотреть, угадали или нет?</div><div>в pod <a href="https://metacpan.org/pod/distribution/Encode/lib/Encode/Supported.pod" style="color:rgb(51,102,204);text-decoration:none;font-weight:bold;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13.333333015441895px;line-height:20px">Encode::Supported</a><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13.333333015441895px;line-height:20px"> как получить массив не вижу.</span><br></div><div><br></div><div>Вроде насущна проблема, </div><div>как такое делать?</div><div><br></div><div>Спасибо!</div></div>