Platinum Partner

Python Utf8 Convert To Gbk

// description of your code here


def utf2gbk(s,ignore=True):
    if ignore:
        return unicode(s,'utf8','ingore').encode('gb18030','ingore')
    else:
        return unicode(s,'utf8').encode('gb18030')
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}