Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Filename encoding problem #1

@paranoid2006

Description

@paranoid2006

when using RuntimeArchiver to unzip a zipfile, two scene would cause problem:

  1. zip file created from Mac OS,with Chinese characters filename, then unzip the file on Windows;
  2. zip file crated from Windows ,with Chinese characters filename, then unzip the file on Windows.

scene 1 problem : filename encoding is UTF-8, but Windows use GBK to decode.
scene 2 problem : filename encoding is GBK,but RuntimeArchiver use UTF8_TO_TCHAR to parse m_filename,which is wrong for Chinese characters,may use MultiByteToWideChar to solve scene 2 problem

It seems there is no good way to detect which scene is ,except detect the filename endoding format

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions