if i use
fang=fopen("test.txt","a");
i get the same result
and for
fang=fopen("ang.txt","a,css=UNICODE");
i get a runtime eroror "invalid file open mode"
I need to finish this for school but i'm stuck.
This code its for an agenda that has a save option.
UNICODE is a bit misleading. If you open a new file and specifiy css=UNICODE it will not create a unicode file, but instead will create an ANSI file. (see the "Encodings Used Based on Flag and BOM" chart on that page)
So instead, you should probably use css=UTF-8 or css=UTF-16LE... depending on which one you want.
It worked with UTF-8 and UTF-16LE.
Thanks a lot.
That was the problem.
ANSI its an extension of ASCII character set and it doesn't have "ăĂ ÂșȘțȚ".
That tag "css=UNICODE" its very misleading.