You probably want to store the text in utf-16 or utf-8.
Normally you'd write a byte order mark which most editors check for to see what encoding the file is in, then you write the encoded characters (wikipedia has information about both).