taers232c / GAM-Scripts3

Scripts for use with GAM - Python 3.6+
229 stars 49 forks source link

Cyrillic characters are not displayed #17

Closed xStevex closed 5 months ago

xStevex commented 5 months ago

When I run gam all users print filelist id title permissions owners mimetype query "(visibility='domainCanFind' or visibility='domainWithLink')" > filelistperms.csv it shows in csv all сyrillic names as "â╨╢╨┤╨╡╨╜╨╕╤Ã". How can it be fixed? As far as I understand, text encoding must be UTF-8.

taers232c commented 5 months ago

Try this:

gam redirect csv ./filelistperms.csv charset utf-8 all users print filelist id title permissions owners mimetype query "(visibility='domainCanFind' or visibility='domainWithLink')"

Are you on a Windows PC? If so, you can do: gam config charset utf-8 save Now, all output will be in UTF-8; if you create input CSV files make sure they are in UTF-8.

Ross

Ross Scroggs @.***

On Jan 29, 2024, at 1:05 AM, Areskes @.***> wrote:

When I run gam all users print filelist id title permissions owners mimetype query "(visibility='domainCanFind' or visibility='domainWithLink')" > filelistperms.csv it shows in csv all сyrillic names as "â╨╢╨┤╨╡╨╜╨╕╤Ã". How can it be fixed? As far as I understand, text encoding must be UTF-8.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAM-Scripts3/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL6XN66NYIAQOJGBBPDYQ5Q7DAVCNFSM6AAAAABCPBQZX2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDIOJZGQ2TCMA. You are receiving this because you are subscribed to this thread.

xStevex commented 5 months ago

Thanks!