Compiler error: BCE0044: unexpected char: 0xFFFD

Hello,

I have been working on a FPS through a tutorial (a great one I might add)
it’s all been going great until I ran into a error that happens quite frequently (I think)
It gives me the error on the compiler BCE0044: unexpected char: 0xFFFD.
I have searched up all of the solutions for this but I cant really get what they are telling the user to do! this FPS has been in the workings for about 15 hours now and i would greatly appreciate help…

 sincerely
var PlayerState : float;
var PlayerAnimSec : GameObject;

function Update () 
{
    PlayerStateController();
    PlaterAnims();

}

function PlayerStateController()
{
    if ((Input.GetAxis(”Vertical”) !=0 || Input.GetAxis(“horizontal”) !=0))
    {
    if (Input.GetButton(“Sprint”))
        {
        PlayerState = 2;
        }
    else
    {
    PlayerState = 1;
    }

}
else
{
PlayerState = 0;
}

}

function PlayerAnims()
{
if (PlayerState == 0)
    {
    PlayerAnimSec.animation.CrossFade("sittingstill", 0.4);
    }
else if (PlayerState == 1)
    {
    PlayerAnimSec.animation.CrossFade("walking", 0.4);
    }
else if (PlayerState == 2)
    {
    PlayerAnimSec.animation.CrossFade("Sprint Anamation", 0.4);
    }
}

This line (line 13, in fact):

if ((Input.GetAxis(”Vertical”) !=0 || Input.GetAxis(“horizontal”) !=0))

is probably causing the error. First of all, you’ve written “horizontal” without the capital H (it should be “Horizontal”).

But the real error that appears in the console (unexpected char: 0xFFFD) is probably due to ”Vertical”: it should be “Vertical” (look at the different quotation marks that you’ve used).

I’m trying to doa sample game from a book, but apparently either the monodevelop program is poop, or the author of the book has no idea what he’s talking about when it comes to code. I’m not familiar with Javascript, so can someone see the problem in this snippet of code? If you need more, let me know. The error is “unexpected char: 0xFFFC (BCE0044)” and it’s appearing on line 167. Ignore the indent spacing in this box:

function BuildDeck(){

var totalRobots:int = 4;  // we've got four robots to work with
var card:Object; // this stores a reference to a card
var id:int = 0;

for(i=0; i