UnicodeEncodeError: 'charmap' codec can't encode characters in position 14-27: character maps to <un

1,010 views
Skip to first unread message

Graham Ingleby

unread,
Nov 8, 2017, 5:00:24 AM11/8/17
to GAM for G Suite
Hi

Having an issue with GAM on a Japanese G Suite instance

Updated GAM to latest version and still the same - version info:
Python 2.7.14 64-bit final
google-api-python-client 1.6.3
oauth2client 4.1.2
Windows-10-10.0.16299 AMD64
Path: G:\My Drive\gam-64

Found a similar error where it was suggested to use code page 1252, tried that but still the same error

Error I am getting is:
G:\My Drive\gam-64>chcp 1252
Active code page: 1252

G:\My Drive\gam-64>gam info domain
Customer ID: xxxxxxxxx
Primary Domain: xxxxxx.co.jp
Primary Domain Verified: True
Customer Creation Time: 2012-05-14T06:16:10.396Z
Default Language: ja
Address:
Traceback (most recent call last):
  File "gam.py", line 12345, in <module>
  File "gam.py", line 11761, in ProcessGAMCommand
  File "gam.py", line 1623, in doGetDomainInfo
  File "gam.py", line 1658, in doGetCustomerInfo
  File "encodings\cp1252.py", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 14-27: character maps to <undefined>
[15528] Failed to execute script gam


As per previous question (https://groups.google.com/forum/#!msg/google-apps-manager/Q2aMzqM4Yrw/MsvfH455BQAJ), I tried piping to a txt file and that worked, my concern is what other errors I may come across that piping to a text file doesnt fix, any ideas how to resolve this properly? (I am going to be exporting users, groups, resources, aliases, domains and orgs from this instance to create in another instance ready for a full migration in case that is relevant)


Ross Scroggs

unread,
Nov 8, 2017, 9:30:16 AM11/8/17
to google-ap...@googlegroups.com

This message is for the named person's use only. If you receive this message in error, please delete it and notify the sender. Ancoris reserves the right to monitor all e-mail communications through its networks. Ancoris Limited, Registered in England Number: 04830784, Registered address: 5a Frascati Way, Maidenhead, Berkshire SL6 4UY. Trading Address: Lily Hill House, Lily Hill Road, Bracknell, Berkshire RG12 2SJ




--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/de82ef68-9465-42c1-8a2e-ddaeba6ed846%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Graham Ingleby

unread,
Nov 8, 2017, 9:46:56 AM11/8/17
to GAM for G Suite
Thanks Ross, 932 seems to work for me
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages