Adi Drumea

Saturday, December 03, 2005

[C#] Unicode is everywhere

I've just noticed that you may have unicode chars in identifiers in C#. Maybe not that useful, but definitely nice. Code like:

string ţară="România";

is now valid. :) There is a catch though. Change the encoding to unicode when saving. If you don't do that, even though in the editor the characters will appear ok, after you close and re-load the file, you will lose all the chars because of the default encoding on disk.

0 Comments:

Post a Comment

<< Home