Advertisement
roachsinai

Untitled

Mar 1st, 2022
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. xq@owin ~ ❯❯❯ [psobject].Assembly.GetTypes() | Where-Object { $_.Name -eq 'ClrFacade'} |
  2. >> ForEach-Object {
  3. >> $_.GetMethod('GetDefaultEncoding', [System.Reflection.BindingFlags]'nonpublic,static').Invoke($null, @())
  4. >> }
  5.  
  6.  
  7. BodyName : gb2312
  8. EncodingName : 简体中文(GB2312)
  9. HeaderName : gb2312
  10. WebName : gb2312
  11. WindowsCodePage : 936
  12. IsBrowserDisplay : True
  13. IsBrowserSave : True
  14. IsMailNewsDisplay : True
  15. IsMailNewsSave : True
  16. IsSingleByte : False
  17. EncoderFallback : System.Text.InternalEncoderBestFitFallback
  18. DecoderFallback : System.Text.InternalDecoderBestFitFallback
  19. IsReadOnly : True
  20. CodePage : 936
  21.  
  22.  
  23. xq@owin ~ ❯❯❯
  24. xq@owin ~ ❯❯❯ [Console]::OutputEncoding
  25.  
  26.  
  27. BodyName : utf-8
  28. EncodingName : Unicode (UTF-8)
  29. HeaderName : utf-8
  30. WebName : utf-8
  31. WindowsCodePage : 1200
  32. IsBrowserDisplay : True
  33. IsBrowserSave : True
  34. IsMailNewsDisplay : True
  35. IsMailNewsSave : True
  36. IsSingleByte : False
  37. EncoderFallback : System.Text.EncoderReplacementFallback
  38. DecoderFallback : System.Text.DecoderReplacementFallback
  39. IsReadOnly : False
  40. CodePage : 65001
  41.  
  42.  
  43.  
  44. xq@owin ~ ❯❯❯ [Console]::InputEncoding
  45.  
  46.  
  47. BodyName : utf-8
  48. EncodingName : Unicode (UTF-8)
  49. HeaderName : utf-8
  50. WebName : utf-8
  51. WindowsCodePage : 1200
  52. IsBrowserDisplay : True
  53. IsBrowserSave : True
  54. IsMailNewsDisplay : True
  55. IsMailNewsSave : True
  56. IsSingleByte : False
  57. EncoderFallback : System.Text.EncoderReplacementFallback
  58. DecoderFallback : System.Text.DecoderReplacementFallback
  59. IsReadOnly : False
  60. CodePage : 65001
  61.  
  62.  
  63.  
  64. xq@owin ~ ❯❯❯ cat C:\Users\xq\Desktop\11.txt
  65. 鏄笉鏄瀮鍦捐€冭檻鍒版埧浠锋墦璧?wq
  66.  
  67. xq@owin ~ ❯❯❯
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement