ZTree.com  | ZEN  | About...  

 Index   Back

Possible explanation   [Zeta]

By: Kim Henkel     Ft. Lauderdale, FL  
Date: Oct 31,2019 at 21:08
In Response to: [Bug?] Archive processing in Unicode -> incompatible output (Hartmut Schneider)

I did a bit more digging into your example, and from what I can tell, it's actually this line alone that causes the odd output.

> CHCP

The redirected output prior to this is correctly UTF16-LE encoded, but, the output of CHCP is ANSI, and just happens to be an odd number of bytes, meaning the following UTF-16 encoding is now one-byte misaligned, effectively turning it into UTF16-BE.

Not sure if CHCP is a true requirement for your needs here, or if there's going to be more exceptions - but of course, the ARCHIVER.BB2 command lines were really intended only to execute a single command and pipe that to a file.

I can at least revert the /U change if your 'command' is actually a script.


Kim

169 views      
 

Messages in this Thread

 
94,725 Postings in 11,942 Threads, 348 registered users, 26 users online (1 registered, 25 guests)
Index | Admin contact |   Forum Time: Jan 25, 2020 - 1:09 pm EST  |  Hits:29,780,400  (5,325 Today )
RSS Feed