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

Zip files with accented name #290

Description

@quantum74656

I want to zip files which names contains accentented characters. The file name within the zip file will be changed.

Examples

Build project:

<?xml version="1.0" encoding="utf-8" ?>
<Project DefaultTargets="CompressFiles" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
	<Target Name="CompressFiles" >
		<ItemGroup>
			<FilesToCompress Include="Files\**\*.*" />
		</ItemGroup>
		<Zip Files="@(FilesToCompress)" WorkingDirectory="Files" ZipFileName="Result.zip" />
	</Target>
</Project>

Files attached:
AccentError.zip

Example 1

  • File names:
    • "01 NonAccentented.txt"
    • "02 Árvíztűrő tükörfúrógép.txt"
  • File names in the result zip:
    • "01 NonAccentented.txt"
    • "0"
      • The first character of the original file name (if it is non accented).

Example 2

  • File names:
    • "01 NonAccentented.txt"
    • "Árvíztűrő tükörfúrógép.txt"
      • Note that the file name starts with an accented character.
  • File names in the result zip:
    • "01 NonAccentented.txt"
    • "�1 NonAccentented.txt"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions