Is there any function like iconv in Python?

I am new on Python. I have some CSV files need to convert from shift-jis to utf-8.

Here is my code in PHP, which is successful transcode to readable text.

$str = utf8_decode($str);
$str = iconv('shift-jis', 'utf-8'. '//TRANSLIT', $str);
echo $str;

My problem is how to do same thing in Python. Anyone can help? Thanks.

Source: python

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.