Skip to content

API: to_msgpack and read_msgpack encoding defaults to utf-8 #12277

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

Closed
wants to merge 1 commit into from

Conversation

kawochen
Copy link
Contributor

closes #12170

@@ -652,7 +657,10 @@ def check_min_structure(self, data):
typ], '"{0}" not found in data["{1}"]'.format(kind, typ)

def compare(self, vf, version):
data = read_msgpack(vf)
if LooseVersion(version) < '0.18.0':
data = read_msgpack(vf, encoding='latin-1')
Copy link
Contributor

Choose a reason for hiding this comment

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

add s comment why this is the case here and a red to this issue

@jreback
Copy link
Contributor

jreback commented Feb 10, 2016

minor comment
ping when green

@kawochen
Copy link
Contributor Author

updated

@jreback jreback added this to the 0.18.0 milestone Feb 10, 2016
@jreback jreback closed this in e82d093 Feb 10, 2016
@jreback
Copy link
Contributor

jreback commented Feb 10, 2016

@kawochen thanks for the quick PR!

cldy pushed a commit to cldy/pandas that referenced this pull request Feb 11, 2016
closes pandas-dev#12170

Author: Ka Wo Chen <[email protected]>

Closes pandas-dev#12277 from kawochen/API-12170 and squashes the following commits:

5adcf3b [Ka Wo Chen] API: to_msgpack and read_msgpack encoding defaults to utf-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataFrame.to_msgpack unexpectedly defaults to latin-1 encoding
2 participants