in reply to help needed in encoding

Propably you need to install Encode::CN for cp936. But I only guess.
$euc_cn = encode("euc-cn", $string);
Boris