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

mongodb_store: encode utf-8 on filling rosmsg #213

Merged
merged 2 commits into from
Apr 18, 2018

Conversation

furushchev
Copy link
Collaborator

Querying messages including non-ascii unicode string inside fails on filling message data from mongodb BSON document with the error like below:

[ERROR] [WallTime: 1517718535.363565] [1498895536.545688] 'ascii' codec can't encode characters in position 7-26: ordinal not in range(128)

Since mongodb keeps data only with utf-8 encoding, I added a code to force encode unicode string as 'utf-8' byte string.

@strands-jenkins
Copy link
Contributor

Can one of the STRANDS admins verify this patch? Post a comment containing "ok to test" to enable Jenkins builds for this pull request.

@strands-jenkins
Copy link
Contributor

Merge build triggered.

@strands-jenkins
Copy link
Contributor

Merge build triggered.

@hawesie
Copy link
Member

hawesie commented Feb 21, 2018

@bfalacerda I wonder if this is related to our weird string escape issue!

@hawesie
Copy link
Member

hawesie commented Feb 21, 2018

ok to test

@strands-jenkins
Copy link
Contributor

Merge build triggered.

@furushchev
Copy link
Collaborator Author

@hawesie Hi, I'm using the patched package for more than a month and have no problem.
Do you have any comment? (If not I'll merge this PR)

@hawesie
Copy link
Member

hawesie commented Apr 18, 2018

Please merge and I'll create a new release this week.

@furushchev furushchev merged commit 7044739 into strands-project:kinetic-devel Apr 18, 2018
@furushchev
Copy link
Collaborator Author

@hawesie Thank you! Merged!

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