16 lines
369 B
Python
16 lines
369 B
Python
import sys
|
|
import io
|
|
|
|
# Set stdout to UTF-8
|
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
|
|
|
with open(r"D:\Yuzu-GCA\screen.png", 'rb') as f:
|
|
data = f.read()
|
|
|
|
print(f"Total bytes: {len(data)}")
|
|
|
|
# Try UTF-16 LE decode
|
|
text = data.decode('utf-16-le', errors='replace')
|
|
print("=== Decoded as UTF-16 LE (first 10000 chars) ===")
|
|
print(text[:10000])
|