divinorum-webb / tableau-api-lib

An API library that allows developers to call on the methods listed in Tableau's REST API documentation.
MIT License
96 stars 34 forks source link

Cannot read foreign language #39

Closed ericmli419 closed 3 years ago

ericmli419 commented 3 years ago

I am querying data from a workbook that contains foreign language (mostly chinese) but it is not reading properly. For example, this is showing up "黑山共和国" as country when it should be "黑山共和国".

suzuke commented 3 years ago

set use_apparent_encoding=True in TableauServerConnection may help.

divinorum-webb commented 3 years ago

@ericmli419 Can you please try setting the use_apparent_encoding flag to True when initializing your TableauServerConnection instance as @suzuke said and then follow up on this thread if that resolves the issue for you?

Thanks @suzuke !

ericmli419 commented 3 years ago

That works! Thanks so much!