Issues with special characters
Posted: Tue Dec 27, 2016 6:50 am
Hi there all,
I bought my son an experimenters kit, but some of the projects get a stray \302 error.
I tried using the Fix Encoding and reload, and I can see the problem....spaces are being replaced by special characters...see below
If I delete them all, the code compiles fine. I tried on an old XP windows machine and it works fine. But on my windows 10 I always get these special characters...
any ideas?
Thanks,
Darren.
void setup() {
  for (int thisLed = 0; thisLed < ledCount; thisLed++) {
    pinMode(ledPins[thisLed], OUTPUT);
  }
  pinMode(buttonPin, INPUT);
}
void loop() {
  for (int thisLed = 0; thisLed < ledCount-1; thisLed++) {
    digitalWrite(ledPins[thisLed], HIGH);
    delay(ledDelay);
    while(digitalRead(buttonPin) == HIGH) {
      delay(10);
    }
    digitalWrite(ledPins[thisLed], LOW);
  }
}
I bought my son an experimenters kit, but some of the projects get a stray \302 error.
I tried using the Fix Encoding and reload, and I can see the problem....spaces are being replaced by special characters...see below
If I delete them all, the code compiles fine. I tried on an old XP windows machine and it works fine. But on my windows 10 I always get these special characters...
any ideas?
Thanks,
Darren.
void setup() {
  for (int thisLed = 0; thisLed < ledCount; thisLed++) {
    pinMode(ledPins[thisLed], OUTPUT);
  }
  pinMode(buttonPin, INPUT);
}
void loop() {
  for (int thisLed = 0; thisLed < ledCount-1; thisLed++) {
    digitalWrite(ledPins[thisLed], HIGH);
    delay(ledDelay);
    while(digitalRead(buttonPin) == HIGH) {
      delay(10);
    }
    digitalWrite(ledPins[thisLed], LOW);
  }
}