[GH-ISSUE #728] Problems in TranscodingStreamer- Non-ASCII characters file path #522

Closed
opened 2026-02-26 02:33:27 +03:00 by kerem · 1 comment
Owner

Originally created by @penguinseven on GitHub (Mar 14, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/728

Services/Streamers/TranscodingStreamer.php line 45

   // When escapeshellarg() was stripping my non-ASCII characters from a UTF-8 string, 
  //adding the following fixed the problem:
        setlocale(LC_CTYPE, "en_US.UTF-8");
        $args = [
            '-i '.escapeshellarg($this->song->path),
            '-map 0:0',
            '-v 0',
            "-ab {$bitRate}k",
            '-f mp3',
            '-',
        ];
Originally created by @penguinseven on GitHub (Mar 14, 2018). Original GitHub issue: https://github.com/koel/koel/issues/728 Services/Streamers/TranscodingStreamer.php line 45 ``` // When escapeshellarg() was stripping my non-ASCII characters from a UTF-8 string, //adding the following fixed the problem: setlocale(LC_CTYPE, "en_US.UTF-8"); $args = [ '-i '.escapeshellarg($this->song->path), '-map 0:0', '-v 0', "-ab {$bitRate}k", '-f mp3', '-', ]; ```
kerem 2026-02-26 02:33:27 +03:00
Author
Owner

@BrookeDot commented on GitHub (Apr 22, 2020):

Closing this as a duplicate of #561

<!-- gh-comment-id:617599530 --> @BrookeDot commented on GitHub (Apr 22, 2020): Closing this as a duplicate of #561
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#522
No description provided.