Skip to content

UTF8 encoding in Windows #2

@JeffWScott

Description

@JeffWScott

To allow the whole file to be written in Windows you need to append "\ufeff" to the start of the string.

That makes this line in file.js:
var text = document.getElementById('editor').value;
...become this:
var text = '\ufeff' + document.getElementById('editor').value;

Without this Windows will only write half the text to the file.

Also, great tutorial, and thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions