<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/python-3-15-preview-utf-8-by-default-quiz-real-python-mfnv9vr4c" -->

---
title: Python 3.15 Preview: UTF-8 by Default Quiz – Real Python
description: An interactive 8-question quiz tests understanding of Python 3.15&#x27;s shift to UTF-8 as the default text encoding, covering the history of the old locale-based...
canonical: https://daily.dev/posts/python-3-15-preview-utf-8-by-default-quiz-real-python-mfnv9vr4c
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Python 3.15 Preview: UTF-8 by Default Quiz – Real Python | daily.dev
og:description: An interactive 8-question quiz tests understanding of Python 3.15&#x27;s shift to UTF-8 as the default text encoding, covering the history of the old locale-based...
og:url: https://daily.dev/posts/python-3-15-preview-utf-8-by-default-quiz-real-python-mfnv9vr4c
og:image: https://api.daily.dev/og/posts/MFnv9VR4C.png
og:image:alt: Python 3.15 Preview: UTF-8 by Default Quiz – Real Python
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Python 3.15 Preview: UTF-8 by Default Quiz – Real Python

**[Real Python](https://daily.dev/sources/rpython)** · 1 min read · 0 upvotes · 0 comments

## Summary

An interactive 8-question quiz tests understanding of Python 3.15's shift to UTF-8 as the default text encoding, covering the history of the old locale-based default, which operations depend on it, how to detect affected code, how to explicitly pass encodings, and how to restore the old locale-based behavior when needed.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://realpython.com/quizzes/python315-utf8-default>

## Questions this post answers

### How do I restore the old locale-based text encoding behavior in Python 3.15?

Python 3.15 makes UTF-8 the default text encoding instead of relying on the operating system locale, but developers who need the previous locale-based behavior can restore it explicitly rather than relying on the implicit default that earlier Python versions used. This affects operations that previously depended on the platform's locale setting for text encoding and decoding.

_Track breaking changes like this one as you plan a Python 3.15 upgrade with daily.dev._

## Similar posts on daily.dev

- [Python Insider: Python 3.15.0 alpha 2](https://daily.dev/posts/python-insider-python-3-15-0-alpha-2-ti4eq907h) · Python Insider · 19 upvotes · 0 comments
- [Python Insider: Python 3.15.0 alpha 3](https://daily.dev/posts/python-insider-python-3-15-0-alpha-3-5bhk0lull) · Python Insider · 1 upvotes · 0 comments
- [Python 3.15 Preview: Upgraded JIT Compiler Quiz – Real Python](https://daily.dev/posts/python-3-15-preview-upgraded-jit-compiler-quiz-real-python-rq9dedraj) · Real Python · 0 upvotes · 0 comments
- [Python 3.13: A Modern REPL Quiz – Real Python](https://daily.dev/posts/python-3-13-a-modern-repl-quiz-real-python-kxwf8ohwz) · Real Python · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/python-3-15-preview-utf-8-by-default-quiz-real-python-mfnv9vr4c)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Python 3.15 Preview: UTF-8 by Default Quiz – Real Python","url":"https://daily.dev/posts/python-3-15-preview-utf-8-by-default-quiz-real-python-mfnv9vr4c","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/python-3-15-preview-utf-8-by-default-quiz-real-python-mfnv9vr4c"},"datePublished":"2026-09-02T12:05:16.049Z","dateModified":"2026-09-02T14:33:27.160Z","description":"An interactive 8-question quiz tests understanding of Python 3.15's shift to UTF-8 as the default text encoding, covering the history of the old locale-based...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8705127a216bd73952ce81104cb8f670?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8705127a216bd73952ce81104cb8f670?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Real Python","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Real Python","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rpython","url":"https://daily.dev/sources/rpython"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/python-3-15-preview-utf-8-by-default-quiz-real-python-mfnv9vr4c","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Real Python","item":"https://daily.dev/sources/rpython"},{"@type":"ListItem","position":3,"name":"Python 3.15 Preview: UTF-8 by Default Quiz – Real Python"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/python-3-15-preview-utf-8-by-default-quiz-real-python-mfnv9vr4c#faq","mainEntity":[{"@type":"Question","name":"How do I restore the old locale-based text encoding behavior in Python 3.15?","acceptedAnswer":{"@type":"Answer","text":"Python 3.15 makes UTF-8 the default text encoding instead of relying on the operating system locale, but developers who need the previous locale-based behavior can restore it explicitly rather than relying on the implicit default that earlier Python versions used. This affects operations that previously depended on the platform's locale setting for text encoding and decoding. Track breaking changes like this one as you plan a Python 3.15 upgrade with daily.dev."}}]}
```

