Comments (4)
possible workaround .....
from espruinowebide.
If I:
- Load the file in Chrome App under Linux: works
- Load the file in espruino.com/ide: same issue you see for online IDE
- Copy/paste the file in online IDE: works
Does it work for you when you copy/paste?
At least for espruino.com/ide the root cause is that your file is actuallt a UTF8 text file. It actually contains those extra characters that you see. If you upload the attached (non-UTF8) file then it may actually work for you?
So I guess we need to detect UTF8 files somehow and convert them? I don't know if this is something the Web Browser would actually handle automatically
from espruinowebide.
Does it work for you when you copy/paste?
Yes copy paste works
If you upload the attached (non-UTF8) file then it may actually work for you?
Yes it does
Just checking Sublime settings
// The encoding to use when the encoding can't be determined automatically.
// ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
"fallback_encoding": "Western (Windows 1252)",
// Encoding used when saving new files, and files opened with an undefined
// encoding (e.g., plain ascii files). If a file is opened with a specific
// encoding (either detected or given explicitly), this setting will be
// ignored, and the file will be saved with the encoding it was opened
// with.
"default_encoding": "UTF-8",
So saving the files as non-UTF-8 does the trick - Many thanks!
from espruinowebide.
Renamed - and lets leave this open. Ideally the IDE would be able to load UTF8 and convert it either way.
Lets ignore the Chrome App for now as at some point Google are still planning to kill it.
from espruinowebide.
Related Issues (20)
- Error in Screenshot Links in Readme File HOT 1
- Can't change UI theme HOT 3
- Time out with large StorageFile HOT 1
- getPorts disabled on timeout HOT 3
- Using Monaco editor instead of Codemirror HOT 4
- Add nullish coalescing support to WebIDE HOT 3
- Decode JS interprets string contents as tokens HOT 1
- "The state of the DFU process does not allow this operation" HOT 1
- Ctrl+u makes an undo before upload HOT 4
- Can't set project directory HOT 12
- Feature request: type to find files in storage HOT 1
- Not all of file name is visible under "Send to Espruino" icon HOT 2
- SlowWrite for espruino.com/ide/relay HOT 3
- Emulator chokes
- [BUG] Setting Vim keymap doesn't work HOT 1
- Editor: Undo in Emacs keymap can cause data loss HOT 9
- Save/load local file from code editor corrupts non-ASCII characters HOT 6
- E.compiledC() subtle change HOT 2
- !!! Web IDE bricking v2 devices with "Firmware update" button HOT 6
- Numeric separators result in error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espruinowebide.