Changes between Version 163 and Version 164 of Event/2011/GCI
- Timestamp:
- 12/18/11 08:13:18 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Event/2011/GCI
v163 v164 353 353 * To check that the file is UTF-8 encoded, you can open it in to Notepad++ or gedit, 354 354 or read it with Python codec. In a Python shell:[[br]] 355 {{{ 356 import codecs 357 f = codecs.open("submitted_file.csv", "r", "utf-8") 358 in = f.read() 359 }}}[[br]] 355 import codecs[[br]] 356 f = codecs.open("submitted_file.csv", "r", "utf-8")[[br]] 357 in = f.read()[[br]] 360 358 That will throw an exception if the file is not UTF-8. 361 359 * If there are rows without a translation, ask the student what the problem was with those rows.