Comments (6)
Wouldn't it in general be easier to assume the file is UTF-8 (backwards compatible with ASCII) and use the UTF-8 encoding directly in the fs command?
fs.readFile(p, 'utf8', function (err, data) {...
UTF-8 support all "relevant" characters and also writing should be no problem then.
from marp.
@dabroder Thank your notification. I understood what is happening. (When opening file, your example is detected as Chinese: GB2312)
We would rather not like to do away with multi-encoding support for few strange cases. In that case, the reopening option sounds good.
My idea is to add File -> Reopen With Encoding
submenu. VS Code & Sublime have similar approach. Would you have any idea?
from marp.
I like File -> Reopen With Encoding
submenu.
Here is the list used by Atom
from marp.
Probably is 'jschardet' library bug
from marp.
Hello @yhatt, most editors encode .md
in utf-8 by default, and offers options for reopen with encoding.
from marp.
@dabroder Work done. I have implemented File -> Reopen With Encoding
menu in #53.
It would apply to the next release version (v0.0.9). I thank to your issue! 👍
from marp.
Related Issues (20)
- Support customize font-family HOT 1
- Image attributes suggestion HOT 7
- set image background color HOT 4
- web-based version? HOT 2
- Add an include directive
- Add Pause-like function in presentation
- Can't extract Marp 0.0.14 download HOT 3
- XSS in preview panel HOT 1
- Request feature: Export comments to pdf HOT 1
- How can I 'run' the presentation in marp? HOT 2
- yaml front matter HOT 1
- Page number with total HOT 2
- WISH: Package releases such that they extract into a folder
- WISH: Identify installed version
- This is fantastic! Do you accept donations? HOT 5
- ⚠️ This app is not maintained, try to use Marp Next HOT 1
- Save Error Happened missing my work! HOT 2
- config file
- XSS to RCE in preview HOT 4
- Stop publishing Marp app
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 marp.