dev-resources.site
for different kinds of informations.
PowerShell | Script output garbled Chinese characters
Published at
9/20/2024
Categories
powershell
Author
01kg
Categories
1 categories in total
powershell
open
Author
4 person written this
01kg
open
I am writing a code snippet for a Chinese friend.
# Check if the folder for today's work exists, if not, create it
$today = Get-Date -Format "yyyyMMdd"
echo $today
$workFolder = "D:\Company\ๆ็ๅทฅไฝ\${today}-WORK"
echo $workFolder
Run .\script.ps1
, output:
20240920
D:\Company\้ดๆ ๆฎๅฎธใค็ถ\20240920-WORK
TL;DR
Save the script as with "UTF-8 with BOM" encoding.
powershell Article's
30 articles in total
Windows ไธ VSCode ็ C/C++ ๅปถไผธๆจก็ต่็็ทจ็ขผ็ๅ้ก
read article
PowerShell ็ๆๅญ็ทจ็ขผ
read article
็ฌ่ฎฐ3
read article
TryHackMe | Windows PowerShell | RSCyberTech
read article
Configuring Hyper-V Global Default Directories
read article
How I Set Up an Awesome PowerShell Environment for Script Development
read article
Azure Function App (Flex Consumption) PowerShell Modules solution
read article
File Comparison Made Easy: Detecting New and Changed Files with PowerShell
read article
10 Best Practices of PowerShell Code Signing for Signing Your Script
read article
PowerShell Script Collection: Automation and Solutions for Everyday Tasks
read article
Video: List All Available Windows Features on Windows 11 using CMD & PowerShell
read article
Set up Azure Network Security Perimeter with PowerShell
read article
Automating Azure Project Setup with PowerShell and GitHub Actions
read article
Azure Function App (Flex Consumption) in private VNET via IaC
read article
Using PowerShell to Create Service Principals for RBAC
read article
Two ways to use Pester to Mock objects with strongly typed parameters
read article
PowerShell Automation: Execute Batch GitHub CLI Commands
read article
โ Do you allow wrong input to enter your function?
read article
Introducing PowerShell Utility Scripts
read article
Cisco DHCP Pool conversion to Windows Server DHCP
read article
PowerShell | Script output garbled Chinese characters
currently reading
Rename Multiple Files in Sequence with Just One Click Using PowerShell in Windows! ๐
read article
Redirect Out-File to TestDrive: in your PowerShell Pester test scripts with this one weird trick
read article
Using PowerShell for day to day stuff
read article
Automating SharePoint Embedded: Using PowerShell to Call Graph API Endpoints
read article
Install Ubuntu on WSL 2
read article
How to Install WSL from PowerShell on Windows 10 and 11
read article
How to Run PowerShell Script in Jenkins Pipeline
read article
Identify Which Files are Large.
read article
Quick guide to setting up an shortcut/alias in windows
read article
Featured ones: