Problems with encoding on static page

Asked

Viewed 27 times

0

I have an html file sent from a Node.js server that can be accessed here who is having trouble with accentuation.

It was working normally, however, after a small update, it got this problem. When I open it with localhost, it works, but for the domain, it doesn’t. Does anyone have a solution?

From now on, thank you.

  • Which IDE did you use when saving the file? (Notepad++, Phpdesigner, Brackets, Atom, etc)

  • I used the Atom.

  • 1

    At the time of saving, it did not save the file in the UTF-8 encoding. Hence the accentuation was incorrect. No Notepad++ é assim: "Settings -> Preferences -> New Document/Default Directory to Automatically Convert ANSI files to UTF-8 without BOM on open", no ATOM fica baixo https://cdn-business.discourse.org/uploads/github_atom/original/3X/a/e/ae6b226e5f378682dd456cd4d0b11c78b8bc907d.PNG

  • @Everson, thank you for the light you gave me. In the answer I explain rsrs.

1 answer

1

Problem solved, the hosting has an online file editor and as it was a small update, I used it. But he saved the file in some other I find that I didn’t utf-8. This time I saved it in Atom and went up, and now it’s all right.

  • 1

    As I suspected hehe

Browser other questions tagged

You are not signed in. Login or sign up in order to post.