‘gbk’ codec can’t encode character ‘\u20ac’ in position 62114: illegal multibyte sequence
find this line in the JS files:
e = "a€|",
It should be this symbol that reports an error. How to solve it
with open('./encryp_js/eventid_encryp.js', 'r', encoding='utf-8') as f: content = f.read() jsdata = execjs.compile(content)
Read More:
- Javascript: Simple package localStorge operation
- JavaScript Common Errors List (Reasons & Solutions)
- Google browser plug-in JavaScript errors Notifier
- JavaScript determines whether parentheses are paired.
- [Solved] VS Code Debug JavaScript Error: “crbug/1173575, non-JS module files deprecated”
- [Solved] Vue Compile Error: JavaScript heap out of memory
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] Project Package Error: Javascript heap out of memory
- Javascript: js websocket disconnected reconnect library ReconnectingWebSocket
- Javascript SecurityError: Failed to read the’localStorage’ property from’Window’: Access is denied for this document.
- [Solved] JS Error: Uncaught SyntaxError: Illegal return statement
- [Solved] Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- ArcGIS API for JavaScript Error Uncaught(in promise): TypeError: xxx is not a constructor
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …
- [Solved] Vue Project Modify Page Error: CALL_AND_RETRY_LAST Allocation failed – JavaScript heap out of memory
- [Solved] Uncaught SyntaxError: Cannot use import statement outside a module
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- js: SyntaxError: Cannot use import statement outside a module