GBK and UTF-8 encoding of Chinese text files read by Python

From , 4 Years ago, written in Python, viewed 50 times.
URL https://pastebin.vip/view/bc27acd4
  1. # -*- coding: utf-8 -*-
  2. for row in open('c:\\1.txt').readlines()
  3.   print row
  4.   print row.find(u'脚本分享网')
  5.  
  6.  

Reply to "GBK and UTF-8 encoding of Chinese text files read by Python"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website