Skip to content

UTF-8 Issue using AdWordsClient.LoadFromStorage() #375

@rabochoval

Description

@rabochoval

Hi all,

Coud you please help me how to change my UTF-8 coding using adwords method AdWordsClient.LoadFromStorage()? My code is very simply:

from googleads import adwords
adwords_client = adwords.AdWordsClient.LoadFromStorage()

Error: Your default encoding, cp65001, is not UTF-8. Please run this script with UTF-8 encoding to avoid errors.

If i set locale to UTF-8 using this
import locale

locale.setlocale(locale.LC_ALL, str('en_US.UTF-8'))
print(locale.getdefaultlocale())

I doesn't change anything...

Any ideas please? I'm using windows

thanks a lot lucie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions