Non-UTF-8 code starting with '\xe4'
python3預設使用UTF-8格式
開頭一般不用加 # -*- coding:utf-8 -*-
# coding=utf-8
但是有的中文中還是會出現無法識別的情況,丟擲Non-UTF-8 code starting with '\xe7' 錯誤,這時候就需要在第一行加上這句。
About Me
........................................................................................................................ ● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除 ● 本文在itpub( http://blog.itpub.net/26736162 )、部落格園( http://www.cnblogs.com/lhrbest )和個人weixin公眾號( xiaomaimiaolhr )上有同步更新 ● 本文itpub地址: http://blog.itpub.net/26736162 ● 本文部落格園地址: http://www.cnblogs.com/lhrbest ● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/ ● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/ ● DBA寶典今日頭條號地址: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826 ........................................................................................................................ ● QQ群號: 230161599 (滿) 、618766405 ● weixin群:可加我weixin,我拉大家進群,非誠勿擾 ● 聯絡我請加QQ好友 ( 646634621 ) ,註明新增緣由 ● 於 2019-06-01 06:00 ~ 2019-06-30 24:00 在西安完成 ● 最新修改時間:2019-06-01 06:00 ~ 2019-06-30 24:00 ● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解 ● 版權所有,歡迎分享本文,轉載請保留出處 ........................................................................................................................ ● 小麥苗的微店 : https://weidian.com/s/793741433?wfr=c&ifr=shopdetail ● 小麥苗出版的資料庫類叢書 : http://blog.itpub.net/26736162/viewspace-2142121/ ● 小麥苗OCP、OCM、高可用網路班 : http://blog.itpub.net/26736162/viewspace-2148098/ ● 小麥苗騰訊課堂主頁 : https://lhr.ke.qq.com/ ........................................................................................................................ 使用 weixin客戶端 掃描下面的二維碼來關注小麥苗的weixin公眾號( xiaomaimiaolhr )及QQ群(DBA寶典)、新增小麥苗weixin, 學習最實用的資料庫技術。
........................................................................................................................ |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2647244/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- python,開發錯誤一:SyntaxError: Non-UTF-8 code starting with '\xca' in filePythonError
- Starting & Stopping SAP
- Starting HAL daemon:[FAILED]AI
- Android Starting Window(Preview Window)AndroidView
- Starting httpd: httpd: Could not reliably determine the serverhttpdServer
- 【kamus】DB2 V9.5 - StartingDB2
- 3.1.5.2 Starting an Instance, and Mounting and Opening a DatabaseDatabase
- OHASD not Starting After Reboot on SLES (Doc ID 1325718.1)boot
- Starting MySQL.The server quit without updating PID fileMySqlServerUI
- ORA-15055 Unable to Connect to ASM When Starting an InstanceASM
- Starting MySQL * Couldn't find MySQL server (/usr/bin/mysqld_safe)MySqlServer
- Starting httpd: httpd: apr_sockaddr_info_get() failed for subversionhttpdAI
- linux重起時到starting udev 時就當機Linuxdev
- Starting AHF Services 使用root使用者進行升級操作
- Tomcat啟動報錯:Error starting static Resources解決方法TomcatError
- Important Changes to Oracle Database Patch Sets Starting With 11.2.0.2_1189783.1ImportOracleDatabase
- android-Building a Notification,Preserving Navigation when Starting an ActivityAndroidUINavigation
- Starting HEARTBEAT with WARNING: string2msg_ll: node [... ] failed authenticationAI
- Error: Invoke-customs are only supported starting with Android O (--min-api 26)ErrorAndroidAPI
- ORA-19527 reported in Standby Database when starting Managed Recovery_352879.1Database
- Eclipse啟動jboss,停留在Starting JBoss ...,但可以訪問。Eclipse
- 遠端連線nacos配置中心報錯:Client not connected, current status:STARTINGclient
- ocp 19c考題,科目082考試題(14)-starting with the letter D
- Starting sendmial: make: Warning: File 'virtusertable.db' has ..的解決辦法2
- 7353884-OCSSD spends 590 seconds for Local Join starting crs stack_7353884.8CSS
- [轉]Linux開機時停在 Starting sendmail 不動了的解決方案LinuxAI
- ORA-00845 When Starting Up An 11g Instance With AMM Configured
- 解決Mac M晶片 Wireshark 執行rvictl -s 後,出現Starting device failedMac晶片devAI
- Maven工程 服務提供方啟動時沒有Starting ProtocolHandler的 解決方法MavenProtocol
- Mysql中介軟體_haproxy在啟動過程中報錯_Starting proxy : cannot bind socketMySql
- Exception starting filter struts2 java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependeExceptionFilterJava
- Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.iOSError
- 執行root.sh 提示Deconfigure the existing cluster configuration before starting
- Mysql8.0在windows系統安裝一直卡在Starting the server的解決方案MySqlWindowsServer
- AutoEncoder & AutoDecoder & Encoder-Decoder Family
- 淘淘商城問題-啟動maven專案,沒有出現Starting ProtocolHandler ["http-bio-8080"]MavenProtocolHTTP
- 移動端問題解決 —— Starting a Gradle Daemon, 1 incompatible and 5 stopped Daemons could not be reused ...Gradle
- maven專案執行不成功,沒有出現資訊: Starting ProtocolHandler ["http-bio-8090"]MavenProtocolHTTP