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

Non UTF-8 ? #20

Open
glennpierce opened this issue Apr 13, 2017 · 0 comments
Open

Non UTF-8 ? #20

glennpierce opened this issue Apr 13, 2017 · 0 comments

Comments

@glennpierce
Copy link

Hi so I am using your code to provide a mysql facade for postgres for a particular commercial product.
Code works great thanks.

However, sometimes where I get the byte stream form said product I get

error: Utf8Error
let sql = String::from_utf8(slice.to_vec()).expect("Invalid UTF-8");

How can I deal with this ?
I'm not sure how non utf-8 can be sent.

Thanks

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

No branches or pull requests

1 participant