ZTree.com  | ZEN  | About...  

 Index   Back

[Notice] MS implores you to stop using Cmd and switch to PowerShell   [Notice]

By: Liviu       
Date: Jun 03,2020 at 18:00
In Response to: [Notice] MS implores you to stop using Cmd and switch to PowerShell (Martijn Coppoolse)

>> They revamped the console in Win10 for the first time in a long while, from
>> eye candy [...] to more serious business (partial 'chcp 65001' utf-8 support).

> You're mixing up two teams; the Console Host team, and the CMD team.

You are right about the separation of powers. However, there has definitely been new work done in Win10 on the CMD side as well. What caught my eye is the (finally added) support for UTF-8 under `chcp 65001` with pipes and redirection.

Save for example a text file containing "‹ α ß © ∂ € ›" encoded as UTF-8 (with BOM).

This used to stump Win7.

C:\etc>chcp 65001
Active code page: 65001

C:\etc>type utf8.txt | more
Not enough memory.
The process tried to write to a nonexistent pipe.

C:\etc>more <utf8.txt
Not enough memory.

But it now works in Win10.

C:\etc>chcp 65001
Active code page: 65001

C:\etc>type utf8.txt | more
‹ α ß © ∂ € ›

C:\etc>more <utf8.txt
‹ α ß © ∂ € ›

Cheers,
Liviu

608 views      
Thread locked
 

Messages in this Thread

 
95,257 Postings in 12,014 Threads, 350 registered users, 120 users online (2 registered, 118 guests)
Index | Admin contact |   Forum Time: Jan 20, 2021 - 9:41 am UTC  |  Hits:36,921,197  (10,024 Today )
RSS Feed