---
slug: "mac-のフォルダ名を-python-から出力する時に濁点が分かれてしまうのを直す"
title: "Fixing the Issue of Separated Voiced Marks in Folder Names on Mac When Outputting from Python"
description: "Debug and work around `multipart/form-data` boundary issues during file upload in macOS WebKit (WKWebView / Safari)."
url: "https://www.ytyng.com/en/blog/mac-のフォルダ名を-python-から出力する時に濁点が分かれてしまうのを直す"
publish_date: "2022-09-19T07:31:07Z"
created: "2022-09-19T07:31:07Z"
updated: "2026-05-11T13:21:50.856Z"
categories: ["Python"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/5828d19b3cd34906a84d34a775dc8661.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# Fixing the Issue of Separated Voiced Marks in Folder Names on Mac When Outputting from Python

<p>When trying to output directory names on a Mac</p>
<pre>プ ロシ゛ ェクト</pre>
<p>If it ends up looking like this, you can fix it by using</p>
<pre>import unicodedata<br />unicodedata.normalize('NFC', folder_name)</pre>
<p>You can correct it with the built-in <em>unicodedata</em> module.</p>
<p></p>
<p>This process is called converting from NFD normalization to NFC normalization of Unicode.</p>
<p>Reference: <a href="https://t2y.hatenablog.jp/entry/2019/06/29/150125" target="_blank">Handling Unicode normalization NFC/NFD strings in Python - forest book</a></p>
