Does gspread.open only support English file name? - gspread

I used the Importing data from Google Sheets code snippet. It works fine with my files in English.
Then, I tried some Chinese file names, and file name with characters like é, ê. It throws error saying SpreadsheetNotFound. I am sure I have files with those names in my Google Drive.
Does gspread.open only support English file name?
Thanks

Apparently, this only happens on Python2 notebooks.

Related

clean csv file from hidden characters

I work with CSV files and upload them to an S3 server.
Sometimes after a small process that I did with the file I get hidden characters to look like this  before the first columns, I want to write a script that "clean" the files before upload but I can see those characters only on specific text editors like nano, the python didn't recognize those characters and I can see them in Amazon Athena after the query was created already and I need to upload it again.
Does anyone know a solution to this problem?
After a small research I learn that the symbol called BOM and they added to the files because I added encoding='utf-8'.

Cannot be Compressed because it includes characters that cannot be used, but I don't have any files with special characters

So I'm trying to compress some documents I made when I get the following error message:
I have no idea what the character is, as it just looks like a blank space. I have removed the blank spaces from my documents and it still won't let me zip it. Online answers seem to refer to needing the change the language setting on my computer, but I haven't written any foreign languages. Any help would be appreciated.
Go to Users directory and make a new directory called 'Analytics',
Then, move you 'Account_Over_Time_Analysis' to this folder and try to comporess again.
If it fails again, please try 7zip incase your using something else.
Such an error could be caused from different language dir-name, a name with spaces or a name with escape chars.
To fix this you could hunt around for the correct language pack, or just install 7-Zip and use that to zip the files instead

How can I automate openssl in windows?

I am using OpenSSL (from https://slproweb.com/products/Win32OpenSSL.html) to decrypt a file retrieved from external sftp site. The external site is publishing new files daily, each with new filenames. At the moment when the file is downloaded I have to manually go into Openssl.exe and type the following each time
C:\OpenSSL-Win64\bin\openssl.exe cms –decrypt –inkey C:\key.pem –recip C:\cert.pem –inform DER –in \\server01\filename.xml.crypt –out \\server01\Decrypt\filename.xml
I tried putting this in a batch file (*.bat) but when I ran that it did not work. The only thing that I have managed to get to work is the manual process described above.
Is there a way to automate this and avoid having to manually type the whole code above? I should mention the filename.xml.crypt is actually normally around 100 characters long...
Ideally looking at a windows batch file, or something similar?
Sorry if this is a stupid question!
TIA
Hamez
I'm also having the exact same issues. The hyphen '-' is being converted to the accented u (i.e. -recip, -inform etc). No doubt we've all copied it from a webpage and that has altered the code base of the hyphen. I've just manually inputted the - for all the command line parameters and now it's worked.

Unicode characters in Jekyll category

I'm new to Jekyll and Ruby. I am using it for writing a blog in Polish, which uses non-ASCII characters.
I'd like to use UTF characters in category names - for example, "Świat". Sadly, this leads to the blog post being put in a directory also called "Świat" (with the non-ascii 'Ś' in the name), and the server I am using apparently cannot cope with non-ASCII characters in the URL (I thought non-ascii is not really allowed in URL anyway).
All Polish characters are 'downgradable' to a regular Latin character for the permalink (e.g. 'Ś'->'S'), which seems like the most desirable option here. Is that possible to do automatically somehow? I guess one option would be to manually specify the permalink in the front matter for each post, but that seems cumbersome.
I am using Jekyll 3.2.1, and a template called 'centrarium' in case that matters.
Apologies if that's a noob question, I tried googling around but couldn't really find anything.
Edit :
There is no reason for your server to mess with file or folder names containing accented characters. "Świat" is a valid string for any file system.
And Jekyll's url are well encoded, so, using accented chars in url is fine out of the box.
I've tested it here, just by adding "Świat" as a category to a post. And it works just fine.
Do you have something visible in a repository ?
# End edit
Old answer :
This can be done with a plugin.
But this implies that you can't use github-pages to generate your site. You will have to generate locally and push to your publishing branch (usually gh-pages), or use some Continuous Integration service like Travis.

TheBat archive file (tbk) format

I'd like to write a function to read archived emails from TheBat mail client archive file (.tbk). However, I can't find any specification of the format.
If anyone has this format description or digged it themselves, I'd be grateful.
Check out TheBat API Docs. Even if they don't give you direct low-level format of the file, using them you should be able to write your own functions to read message storage.
Try to open the tbk file in a text editor (notepad++ on windows, vi(m) or nano on linux, I don t know what on mac).
Is it plain text?
Yes->Write your parser
No->Write your parser using the API

Resources