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
failed to push file with Chinese character to my device (adb bug) #2184
Comments
Recently I fixed this same type of issue in a cygwin program by adding |
I just tested (with |
It doesn't work for me :(, I think it's because Chinese-Simplified Windows ecoded the filename by GB2312/GBK ,so it failed.
have no idea... |
I know little about Linux & C ... |
It's probably an error on the device, so it depends on the adb server version on your device. |
I test it on Android 5.0.1 and Android 8.0 even on an andorid emulator(7.0),it all failed... |
I ran into the same problem. |
@rom1v Maybe it's the same question as this one? openstf/adbkit#127 |
Environment
When i drag a file with Chinese character to the device,it response like this:
adb: error: failed to copy 'D:\TRANS\中文名.jpg' to '/sdcard/.': remote couldn't create file: Is a directory
I know it's a bug in adb,but there is a solution to fix the problem.
When u execute the command like this
adb push D:\TRANS\中文名.jpg /sdcard/
it will fail 100%.
but if u execute with this way :
adb push D:\TRANS\中文名.jpg /sdcard/中文名.jpg
it will be success and with a correct filename;
It looks like scrcpy excute the command like the first way?(not sure)
So,is it OK to change the command the scrcpy excutes?
Hope it can be fixed.
Thank u so much!
The text was updated successfully, but these errors were encountered: