mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-10-09 15:58:34 +00:00
0989328afa
When auto-detection mode is used and a directory is empty (or all filenames are valid UTF-8), detectEncodingFromList now returns null instead of defaulting to "utf-8". The caller then preserves the previously resolved session encoding. This fixes the issue where navigating into an empty directory on a GB18030 server would silently flip the session to UTF-8, causing subsequent creates/renames/uploads to send UTF-8 bytes and produce garbled filenames. Co-Authored-By: Claude <noreply@anthropic.com>