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

Error running expressions containing strings with invalid UTF-8 #32

Closed
clovetea opened this issue Dec 15, 2017 · 1 comment
Closed

Error running expressions containing strings with invalid UTF-8 #32

clovetea opened this issue Dec 15, 2017 · 1 comment

Comments

@clovetea
Copy link

This works in python

>>> eval("len(\"\277\")")
1

but from q I get this

q).p.eval("len(\"\277\")")
  File "<string>", line 1
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xbf in position 0: invalid start byte
'p.c:71 runs pyerr
  [1]  /home/tepu/embedPy-master/p.q:21: .p.wfunc:{[f;x]r:wrap f x 0;$[count x:1_x;.[;x];]r}
@clovetea
Copy link
Author

clovetea commented Feb 1, 2018

Looks like I should have been running .p.eval("len("\277")")

@clovetea clovetea closed this as completed Feb 1, 2018
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