#!/usr/bin/env geekism
# Suppose gb2312_line is a string encoded in gb2312,utf8_line is the converting result. utf8_line = gb2312_line.decode('gb2312').encode('utf8')
Post a Comment
No comments:
Post a Comment