powerShell() fix UTF8 output (windows)
This commit is contained in:
parent
12455253dd
commit
953a6fa026
@ -90,7 +90,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||
| 5.30.3 | 2026-01-11 | Updated docs, code cleanup. |
|
||||
| 5.30.4 | 2026-01-15 | `powerShell()` fix UTF8 output (windows) |
|
||||
| 5.30.3 | 2026-01-11 | Updated docs, code cleanup |
|
||||
| 5.30.2 | 2026-01-08 | `processes()` revert added user (windows) |
|
||||
| 5.30.1 | 2026-01-07 | `networkInterfaces()`, `users()` improved date parsing (linux) |
|
||||
| 5.30.0 | 2026-01-06 | `processes()` added user (windows) |
|
||||
|
||||
@ -57,6 +57,12 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.30.4
|
||||
</th>
|
||||
<td>2026-01-15</td>
|
||||
<td><span class="code">powerShell()</span> fix UTF8 output (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.30.3</th>
|
||||
<td>2026-01-11</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png" alt="logo">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.30.3</span></div>
|
||||
<div class="version">New Version: <span id="version">5.30.4</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
@ -212,7 +212,7 @@
|
||||
<div class="title">Downloads last month</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">937</div>
|
||||
<div class="numbers">940</div>
|
||||
<div class="title">Dependents</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -479,7 +479,7 @@ function powerShell(cmd) {
|
||||
const spanOptions =
|
||||
osVersion[0] < 10
|
||||
? ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-NoExit', '-ExecutionPolicy', 'Unrestricted', '-Command', '-']
|
||||
: ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-ExecutionPolicy', 'Unrestricted', '-Command', cmd];
|
||||
: ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-ExecutionPolicy', 'Unrestricted', '-Command', _psToUTF8 + cmd];
|
||||
const child = spawn(_powerShell, spanOptions, {
|
||||
stdio: 'pipe',
|
||||
windowsHide: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user