My input file(f) has some Unicode (Swedish) that isn\'t being read correctly.
Neither of these approaches works, although they give different results:
I assume that you mean 'UTF-8' when you say 'Unicode'.
If you know that the file is UTF-8, then do
LoadFromFile(f, TEncoding.UTF8).
To save:
SaveToFile(f, TEncoding.UTF8);
(The GetOEMCP WinAPI function is for old 255-character character sets.)
GetOEMCP