[Bug] File encoding issues with accented characters on Windows PowerShell
Resolved 💬 1 comment Opened Jan 14, 2026 by StephFleury Closed Jan 14, 2026
Bug Description
Lorsque claude code créé des fichiers (depuis le terminal Developper PowerShell de visual studio) , l'encodage des fichiers n'est pas correct. Il y a un problème sur les acaractères accentués.
Environment Info
- Platform: win32
- Terminal: visualstudio
- Version: 2.1.7
- Feedback ID: 91f878e0-0bd9-4ccb-a8b6-f4eda6cf45cd
Errors
[{"error":"Error: Failed to create shell snapshot: Command failed: C:\\Program Files\\Git\\bin\\bash.exe -c -l SNAPSHOT_FILE='C:\\Users\\Stephane\\.claude\\shell-snapshots\\snapshot-bash-1768377246837-zvgh80.sh'\n # No user config file to source\n\n # First, create/clear the snapshot file\n echo \"# Snapshot file\" >| \"$SNAPSHOT_FILE\"\n\n # When this file is sourced, we first unalias to avoid conflicts\n # This is necessary because aliases get \"frozen\" inside function definitions at definition time,\n # which can cause unexpected behavior when functions use commands that conflict with aliases\n echo \"# Unset all aliases to avoid conflicts with functions\" >> \"$SNAPSHOT_FILE\"\n echo \"unalias -a 2>/dev/null || true\" >> \"$SNAPSHOT_FILE\"\n\n echo \"shopt -s expand_aliases\" >> \"$SNAPSHOT_FILE\"\n\n \n # Check for rg availability\n echo \"# Check for rg availability\" >> \"$SNAPSHOT_FILE\"\n echo \"if ! command -v rg >/dev/null 2>&1; then\" >> \"$SNAPSHOT_FILE\"\n echo ' alias rg='\"''\\''C:\\Users\\Stephane\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\vendor\\ripgrep\\x64-win32\\rg.exe'\\'''\" >> \"$SNAPSHOT_FILE\"\n echo \"fi\" >> \"$SNAPSHOT_FILE\"\n \n\n # Add PATH to the file\n echo \"export PATH=\\$PATH\" >> \"$SNAPSHOT_FILE\"\n \n\n # Exit silently on success, only report errors\n if [ ! -f \"$SNAPSHOT_FILE\" ]; then\n echo \"Error: Snapshot file was not created at $SNAPSHOT_FILE\" >&2\n exit 1\n fi\n \n\n at file:///C:/Users/Stephane/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1618:132\n at ChildProcess.exithandler (node:child_process:422:5)\n at ChildProcess.emit (node:events:518:28)\n at ChildProcess.emit (node:domain:489:12)\n at maybeClose (node:internal/child_process:1101:16)\n at ChildProcess._handle.onexit (node:internal/child_process:304:5)","timestamp":"2026-01-14T07:54:18.373Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗