Fix Encode Issues (#328)
`Set-GitHubContent` needed to use the `UTF8` encoder, just like `Get-GitHubContent`, as opposed to the `Unicode` encoder.
This commit is contained in:
Родитель
002363505f
Коммит
1200b5b36a
|
@ -358,7 +358,7 @@ filter Set-GitHubContent
|
|||
|
||||
$uriFragment = "/repos/$OwnerName/$RepositoryName/contents/$Path"
|
||||
|
||||
$encodedContent = [Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($Content))
|
||||
$encodedContent = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($Content))
|
||||
|
||||
$hashBody = @{
|
||||
message = $CommitMessage
|
||||
|
|
Загрузка…
Ссылка в новой задаче