I am trying hard to save some string to a text file with ASCII encoding in a win8 app project. Below is some of the code snippet:
StorageFi
As far as I know, Windows Store apps cannot use non-Unicode encodings. But if your string only contains characters with codepoints between U+00 and U+7F (0..127) then UTF8 and ASCII are identical, because UTF8 was designed to be ASCII-compatible.
So, just encode it as UTF8 and decode as ASCII.