O-Seok 개발 성장 일지 ✨

  • Home
    • 01_studying. TIL 👨🏻‍💻
      • blog
      • python
    • 02_issue. TIL 💥
      • python

Category: python

2020
0
02_issue. TIL 💥python
2020-05-09

CSV 파일 read시 UnicodeDecodeError 인코딩 오류 대처하기

파이썬으로 csv 파일을 읽어오는데 인코딩 오류 발생했다. 1234567import csvwith open('./resource/sample1.csv', 'r') as f: reader = csv.reader(f) for c in reader: print(c) 유니코드 에러 내용: 1UnicodeDecodeError: 'utf-8'

follow:

recents

  • 01_studying. TIL 👨🏻‍💻python

    DB 수정, 삭제

    2020-05-25

  • 01_studying. TIL 👨🏻‍💻python

    DB 조회

    2020-05-25

  • 01_studying. TIL 👨🏻‍💻python

    DB파일생성, 테이블생성, 데이터 삽입

    2020-05-25

  • 01_studying. TIL 👨🏻‍💻python

    외부파일(CSV, EXCEL) 읽기, 쓰기

    2020-05-25

  • 01_studying. TIL 👨🏻‍💻python

    파일 읽기, 쓰기

    2020-05-25

categories

  • 01_studying. TIL 👨🏻‍💻22
    • blog2
    • python20
  • 02_issue. TIL 💥1
    • python1

archives

  • May 202023

tags

  • DB3
  • UnicodeDecodeError1
  • blog2
  • class2
  • create1
  • css1
  • csv2
  • datatype6
  • delete1
  • dict1
  • excel1
  • file2
  • for1
  • function2
  • github1
  • hexo2
  • hueman1
  • if1
  • lambda1
  • layout1
  • list1
  • module1
  • package1
  • print1
  • python21
  • read2
  • select1
  • set2
  • sqlite3
  • string1
  • table3
  • theme1
  • tuple1
  • while1
  • write2

tag cloud

DB UnicodeDecodeError blog class create css csv datatype delete dict excel file for function github hexo hueman if lambda layout list module package print python read select set sqlite string table theme tuple while write

links

  • Hexo

© 2020 O-Seok

Powered by Hexo. Theme by PPOffice