Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

READY: UTF-8 config #4043

Closed
wants to merge 1 commit into from
Closed

READY: UTF-8 config #4043

wants to merge 1 commit into from

Conversation

xoriole
Copy link
Contributor

@xoriole xoriole commented Nov 19, 2018

No description provided.

@xoriole xoriole changed the title UTF-8 config WIF: UTF-8 config Nov 19, 2018
@@ -288,7 +288,7 @@ def on_finished(self, reply, capture_errors):

data = reply.readAll()
try:
json_result = json.loads(str(data), encoding='latin_1')
json_result = json.loads(str(data), encoding='utf-8')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also send non-utf-8 encoded strings over the request manager.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request manager still uses latin_1 now and the config is converted to use UTF-8.

@xoriole xoriole changed the title WIF: UTF-8 config READY: UTF-8 config Nov 28, 2018
@devos50
Copy link
Contributor

devos50 commented Dec 5, 2018

@xoriole is this one ready for merge/review?

@qstokkink
Copy link
Contributor

This still needs to be tested on non-utf8 systems. It seems this approach will simply fix it for the utf-8 users and break it for the rest. This will lead to a never ending whack-a-mole approach with encodings. We should use the system encoding instead.

@xoriole
Copy link
Contributor Author

xoriole commented Dec 5, 2018

retest this please

@xoriole
Copy link
Contributor Author

xoriole commented Dec 5, 2018

retest this please

1 similar comment
@xoriole
Copy link
Contributor Author

xoriole commented Dec 5, 2018

retest this please

@qstokkink
Copy link
Contributor

As I do not believe this PR will solve our problems long term and it has gone stale, I will close this PR. It should be naturally fixed when we move to Python 3 anyway.

@qstokkink qstokkink closed this Jan 22, 2019
@xoriole xoriole deleted the utf-8-config branch July 3, 2019 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants