Angularjs - accents

Asked

Viewed 3,128 times

5

I’m using AngularJS and Wamp Server.

In the program I am doing I have an array:

($rootScope.fruits = ["banana","maça","laranja",'época'];) 

That you’re giving the seats a problem. So I put in the plunker to show the code and there the accent works...

http://plnkr.co/edit/97iLW06tq1hcEdQymvA8?p=preview

Can someone tell me what I do to fix it in my machine?

2 answers

3

It must be the encoding of your file, try to change it to utf-8.

Or you can add direct html inside the head tag:

<head>
....
<meta charset="utf-8"/>
....
</head>

2

Maybe it’s the version of your physical file. You can do this with a tool like Notepad++, for example, just change the file format to UTF-8.

Browser other questions tagged

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