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

93 views      
 

Messages in this Thread

 
94,580 Postings in 11,930 Threads, 348 registered users, 9 users online (1 registered, 8 guests)
Index | Admin contact |   Forum Time: Nov 15, 2019 - 3:22 am EST  |  Hits:29,105,103  (2,317 Today )
RSS Feed