<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>인코딩 on DevTrace — 글로벌 개발 에러 트러블슈팅</title><link>https://tokkabi.com/tags/%EC%9D%B8%EC%BD%94%EB%94%A9/</link><description>Recent content in 인코딩 on DevTrace — 글로벌 개발 에러 트러블슈팅</description><generator>Hugo -- 0.125.0</generator><language>ko</language><lastBuildDate>Fri, 03 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tokkabi.com/tags/%EC%9D%B8%EC%BD%94%EB%94%A9/index.xml" rel="self" type="application/rss+xml"/><item><title>Python 2 UnicodeEncodeError: 'ascii' codec can't encode character — str() 대신 encode() 사용하기</title><link>https://tokkabi.com/posts/python2-ascii-unicodeencodeerror-str-vs-encode/</link><pubDate>Fri, 03 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/python2-ascii-unicodeencodeerror-str-vs-encode/</guid><description>Python 2에서 BeautifulSoup으로 웹 페이지를 파싱하다 &amp;#39;ascii&amp;#39; codec can&amp;#39;t encode character 에러가 발생하는 문제를 다룹니다. 원인은 유니코드 문자열을 str()로 ASCII에 강제 인코딩하려 하기 때문이며, .encode(&amp;#39;utf-8&amp;#39;)로 명시적 인코딩하거나 전체를 유니코드로 처리하면 해결됩니다.</description></item></channel></rss>