This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | IllegalArgumentException: Cannot create PyString with non-byte value | ||
---|---|---|---|
Product: | python | Reporter: | Jenselme |
Component: | -- Other -- | Assignee: | Jenselme |
Status: | STARTED --- | ||
Severity: | normal | CC: | Alniks, Jenselme |
Priority: | P4 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 222075 |
Attachments: |
stacktrace
stacktrace |
Description
Jenselme
2016-01-12 09:18:54 UTC
Created attachment 158094 [details]
stacktrace
Did you include "# -*- coding: utf-8 -*-" or similar? Reassigning to Vincent for evaluation. Created attachment 163126 [details]
stacktrace
Can reproduce with
params={'text': '+-*/\'"[]()??$??<>^??@??=?%????&|?`???????~????{}\\??????'}
params={'text': '??????'},
If I include "# -*- coding: utf-8 -*-" at the top of the file, the problem disappears. However, I write Python 3 and this header is not required any more. I'll look into it. author Julien Enselme <jenselme@netbeans.org> Sun, 04 Dec 2016 13:37:51 +0100 (7 minutes ago) changeset 18392 6ccd27d3f884 parent 18391 044f0cf6fb6b #257531: Prevent errors on files containing non ascii characters without the encoding header |