0

I'm trying to use in external javascript file

$('<div />',{
  text: '☰',
......

But I couldn't save the file and its saying:

The document's current encoding can not correctly save all of the characters within the document. You may want to change to UTF-8 or an encoding that supports the special characters in this document.

What should I do?

1 Answer 1

1

You should convert the file to UTF-8, and then try pasting the character in, again, after it's converted and saved.

Your file could be in one of many, many formats, depending on your editor, but if you're just using a text-editor like Notepad, it's going to cause you problems with things that don't fit happily into ASCII.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.