My Environment: RadStudio XE4 Update1 on Windows7 pro (32bit).
When we want to write file with Encoding, what are the APIs?
I found TStreamWriter.Create(FileName, ..., TEncoding.GetEncoding(...))
as one option.
Is this what are used normally?
I also found TStringList.SaveToFile()
with Encoding.
I tried to find the way to specify Encoding for FileOpen()
/Filewrite()
, but did not find the related information.