Skip to content

[Bug]: Extracted text with non-UTF8 encoding (Arabic/Persian) appears corrupted #68

Description

@kihanb

What happened?

Everything works correctly except when the extracted file contains Arabic/Persian (RTL) text.
The output looks corrupted, such as:

���� �� "�����" ��� �������
����� ����

How to reproduce the bug

$archive = Archive::read('file.rar');
$sub = $archive->getFileItems()[0];
echo $archive->getContents($sub);

Package Version

2.3.02

PHP Version

8.3.27

Which operating systems does with happen with?

Linux

Notes

No response

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions