https://learn.microsoft.com/zh-c ... ean-system-boolean)- $str = @'
- a1江苏
- b2上海
- c3浙江
- d4河南
- e5陕西
- '@
-
- $UTF32LE = New-Object System.Text.UTf32Encoding $false, $true;
- [IO.File]::WriteAllText('1.txt', $str, $UTF32LE);
- $str2 = [IO.File]::ReadAllText('1.txt', $UTF32LE);
- $str2;
- [Console]::ReadLine();
复制代码
|