An En-dash is a wide hyphen. I only just discovered it myself.
I have a file with this name in my Google Drive: Block 0 – Data analysis.pdf
When I execute the following command with gdrive, using the Windows command prompt:
gdrive list --absolute -m -1 --name-width 0
The file name is printed as: Block 0 ÔÇô Data analysis.pdf
After downloading the file with gdrive, the file is saved to the system with the correct name rather than the mangled name. I have more code that runs against the file post-download, and this code thinks the file does not exist as the names do not match.
I can add a special case to my program for this specific issue, but it seems there could be a larger encoding issue at hand and other characters could be affected. I don't know much about encoding, so hopefully someone who understands more can chime in.
Hello,
An En-dash is a wide hyphen. I only just discovered it myself.
I have a file with this name in my Google Drive: Block 0 – Data analysis.pdf
When I execute the following command with gdrive, using the Windows command prompt: gdrive list --absolute -m -1 --name-width 0
The file name is printed as: Block 0 ÔÇô Data analysis.pdf
After downloading the file with gdrive, the file is saved to the system with the correct name rather than the mangled name. I have more code that runs against the file post-download, and this code thinks the file does not exist as the names do not match.
I can add a special case to my program for this specific issue, but it seems there could be a larger encoding issue at hand and other characters could be affected. I don't know much about encoding, so hopefully someone who understands more can chime in.