Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

HW6 (Problema: UTF-8 encoding mismatch)

G
Gian-duiotto (630 points)
2 4 8
in HW6 by (630 points)
closed by

Problema: Non riesco a caricare il programma, mi compare:  UTF-8 encoding mismatch

Soluzione per chi riscontrasse lo stesso problema: 

2 Soluzioni:

  1. Creare un nuovo file con il nome di program01 e incollarci il codice.
  2. Usare direttamente program01.eng (il file in inglese).
428 views
closed with the note: Risolto :)

3 Answers

s
sara.lazzaroni (9790 points)
5 8 12
by (9.8k points)
Prova ad usare il file in inglese.
Matypist (5370 points)
11 16 45
by (5.4k points)

pare che nella versione program.ita.py ci sia un carattere che da problemi con l'encoding utf8 in windows o OsX.

  • Cancellate le righe della "consegna" iniziale e risalvate il file per farlo funzionare senza errore.
  • Oppure aggiungete come prima riga il commento # -*- coding: utf-8 -*-
Matypist (5370 points)
11 16 45
by (5.4k points)
c
campobassof (1060 points)
3 4 14
by (1.1k points)
A me non va neanche così.
Matypist (5370 points)
11 16 45
by (5.4k points)

@campobassof hai già provato entrambe le soluzioni?

c
campobassof (1060 points)
3 4 14
by (1.1k points)

@Matypist certo, alla fine ho dovuto usare quello in inglese.

anaran (7090 points)
3 5 37
by (7.1k points)
edited by
Crea un nuovo file,nominalo program01.py, incollaci dentro #-*- coding: utf-8 -*-

E poi il tuo programma