git encoding ai_generated true

git status shows Korean filenames as escaped octal: \354\225\210\353

ID: git/korean-filename-escaped-display

Also available as: JSON · Markdown
95%Fix Rate
95%Confidence
4Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
2 active

Root Cause

Git displays Korean/CJK filenames as escaped octal sequences instead of readable characters.

generic

Workarounds

  1. 98% success Set git config --global core.quotepath false
    git config --global core.quotepath false  # disables octal escaping of non-ASCII filenames

    Sources: https://git-scm.com/docs/git-config#Documentation/git-config.txt-corequotePath

  2. 85% success Additionally set i18n.logOutputEncoding and i18n.commitEncoding to utf-8
    git config --global i18n.commitEncoding utf-8; git config --global i18n.logOutputEncoding utf-8

    Sources: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

Dead Ends

Common approaches that don't work:

  1. Change terminal font to one supporting Korean 95% fail

    Font is irrelevant; git is escaping the bytes before the terminal renders them

  2. Set LANG only in .bashrc 70% fail

    LANG affects terminal encoding but git has its own quotepath setting that overrides display