Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode filename fail #72

Closed
sirio3mil opened this issue Feb 17, 2017 · 1 comment
Closed

Unicode filename fail #72

sirio3mil opened this issue Feb 17, 2017 · 1 comment

Comments

@sirio3mil
Copy link

sirio3mil commented Feb 17, 2017

I have this filename /path/Tenkû no shiro Rapyuta/file.avi and I try to get the media info but instead I get an empty exception throw on line 76 file /Runner/MediaInfoCommandRunner.php.

Im using this code inside a CentOS 7 docker image over Windows, and this is a shared volumen from local path.

@sirio3mil sirio3mil changed the title Unicoded filename fail Unicode filename fail Feb 17, 2017
@sirio3mil
Copy link
Author

Here's the problem, Windows encodes its system text using the encoding Windows-1252 (A.K.A. CP1252).

Linux uses UTF-8 that accepts the full base of Unicode.

So, when the Linux VM, or a Linux style terminal tries to find that directory it tries to find it using a UTF-8 encoding. And the two bytes that encode the characters in UTF-8, seen as if they were Windows-1252 look like two characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant