You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling _get_agent_source(), the compiled agent is opened with open(). However, the encoding isn't declared in this call properly - therefore, it will use the operating system default to open the file. On some systems, this will likely default to utf-8 or similar - however, Windows systems will still open files as cp1252 (see this StackOverflow thread). The agent.js file appears to contain some characters, such as 0x81 which are invalid in cp1252 (as to why, I'm unsure).
Reformatting agent.js in ANSI seems to fix this issue - however, I think the easier option would be to add encoding='utf-8 to the open() call, as this is the standard method of doing so.
The text was updated successfully, but these errors were encountered:
Thanks for the debugging work on this! Feel free to do a PR if you have time, otherwise, I should be able to get to this later tonight and push a new release. 👍
When calling
_get_agent_source()
, the compiled agent is opened withopen()
. However, the encoding isn't declared in this call properly - therefore, it will use the operating system default to open the file. On some systems, this will likely default toutf-8
or similar - however, Windows systems will still open files as cp1252 (see this StackOverflow thread). Theagent.js
file appears to contain some characters, such as0x81
which are invalid in cp1252 (as to why, I'm unsure).Reformatting
agent.js
in ANSI seems to fix this issue - however, I think the easier option would be to addencoding='utf-8
to theopen()
call, as this is the standard method of doing so.The text was updated successfully, but these errors were encountered: