poochie89 / SnipDo-Extensions

SnipDo extensions and advanced guide
128 stars 1 forks source link

Encoding problem #88

Open yf836760 opened 1 year ago

yf836760 commented 1 year ago

I installed it yestearday. And today i found my extension not work. The following is how bug occurs.

  1. install and create an extension, work well
  2. extension first line: $OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
  3. change the language to Chinese, work well
  4. shut down and then sleep
  5. start the pc and use the extension, error occurs: [20:39:50:112] adding paramter PLAIN_TEXT:word [20:39:50:112] adding paramter URLENCODED_ALT_TEXT:word%20 [20:39:50:112] adding paramter URLENCODED_TEXT:word+ [20:39:50:112] adding paramter HTMLENCODED_TEXT:word [20:39:50:120] Result: .ExitCode: Exception setting "OutputEncoding": "The handle is invalid. "
  6. change the language back to english, work well.