reset password
Author Message
cysun
Posts: 2935
Posted 14:30 Oct 22, 2010 |

I've noticed that some students converted the db scripts to UTF encoding as shown in the screenshot below. This causes problem for me during grading because I run all the scripts from command line and my Windows console does not support UTF. What this means is that some parts of the scripts will fail due to some unrecognized characters. So before you submit your homework, please make sure the following scripts are encoded in either ANSI/ASCII or ISO 8859-1.

  • db/csns-create.sql
  • db/csns-test-insert.sql
  • db/csns-drop.sql

In Eclipse, you can change the encoding of a file in Edit -> Set Encoding ... .

[UTF Encoding]

Last edited by cysun at 14:30 Oct 22, 2010.
HuanXue
Posts: 34
Posted 23:48 Oct 22, 2010 |

My eclipse shows that my default code is GBK, so I download the notepad++ as yours.

And it shows this.

I think it's ok, right?

Last edited by HuanXue at 23:49 Oct 22, 2010.
cysun
Posts: 2935
Posted 08:29 Oct 23, 2010 |
HuanXue wrote:

My eclipse shows that my default code is GBK, so I download the notepad++ as yours.

And it shows this.

...

I think it's ok, right?

Yours is fine. Thanks.