AngularJS - accents

5

I'm using AngularJS and Wamp Server .

In the program I'm doing I have an array:

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

That is giving problems in the accents. Then I put it in plunker to show the code and there the accent works ...

link

Can anyone tell me what I do to fix this on my machine?

    
asked by anonymous 17.04.2015 / 16:03

2 answers

3

Should be the encoding of your file, try changing it to utf-8.

Or you can add directly into the html inside the head tag:

<head>
....
<meta charset="utf-8"/>
....
</head>
    
17.04.2015 / 16:11
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.

    
17.09.2015 / 20:45