<?php
$db = new yii\db\Connection([
'dsn' => 'dblib:host=192.111.11.114;dbname=name',
'username' => 'us',
'password' => 'pas',
'charset' => 'utf8',
]);
$result = $db->createCommand("EXECUTE get :prod")
->bindValue(':prod_sn',$SN)
->queryAll();
?>
echo mb_detect_encoding($result[$i]);
mb_convert_encoding($result[$i], "ASCII", "UTF-8");