From 5d6256a0e5d2ffa908fa91dbe4c3b94f23280be1 Mon Sep 17 00:00:00 2001 From: tarakan Date: Tue, 21 Jul 2026 12:50:34 +0300 Subject: [PATCH] fix: console UTF8 encoding for iwr|iex --- bootstrap.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 8aebd85..359b3a5 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -4,12 +4,18 @@ # Запуск с любой машины: # iwr 'https://sc.gper.ru/tarakan/ps-profile/raw/branch/main/bootstrap.ps1' | iex +# ============================================ +# КОДИРОВКА КОНСОЛИ (до любого Write-Host) +# ============================================ +[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 +$OutputEncoding = [System.Text.Encoding]::UTF8 + # ============================================ # КОНФИГУРАЦИЯ # ============================================ $PROFILE_REPO = 'https://sc.gper.ru/tarakan/ps-profile.git' -$PROFILE_DIR = Join-Path $HOME 'Documents\PowerShell\gper-profile' -$MODULES = @( +$PROFILE_DIR = Join-Path $HOME 'Documents\PowerShell\gper-profile' +$MODULES = @( 'PSReadLine', 'Terminal-Icons', 'Posh-SSH',