Dear All
I got a Exception when I using below code to reading a content file in Windows Metro App project.
When I do
var rootFolder =
await
KnownFolders.DocumentsLibrary.GetFolderAsync("DataSource");
var file =
await rootFolder.GetFileAsync("test.docx");
string content =
await
FileIO.ReadTextAsync(file);
|
I got:
No mapping for the Unicode character exists in the target multi-byte code page. (Exception from HRESULT: 0x80070459)
My
Visual Studio save the files using “Unicode (UTF-8 with signature) - Codepage 65001”.It seem normal….
What’s wrong?