将KOI8-R转换为UTF8

Tim*_*nen 3 php encoding utf-8

我需要将KOI8-R编码的字符串转换为普通的UTF8

Gum*_*mbo 6

你可以使用mb_convert_encoding:

$output = mb_convert_encoding($input, 'UTF-8', 'KOI8-R');
Run Code Online (Sandbox Code Playgroud)