We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eb054e commit 91f0eaeCopy full SHA for 91f0eae
src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1
@@ -25,8 +25,11 @@ function Global:__VSCode-Escape-Value([string]$value) {
25
if ($match.Value -eq '\') {
26
'\\'
27
} else {
28
- # Any other character is encoded as hex.
29
- '\x{0:x2}' -f [int][char]$match.Value
+ # Any other characters are encoded as their UTF-8 hex values.
+ -Join (
30
+ [System.Text.Encoding]::UTF8.GetBytes($match.Value)
31
+ | ForEach-Object { '\x{0:x2}' -f $_ }
32
+ )
33
}
34
})
35
0 commit comments