WinRT No mapping for the Unicode character exists in the target multi-byte code page

前端 未结 3 1650
萌比男神i
萌比男神i 2021-01-04 08:15

I am trying to read a file in my Windows 8 Store App. Here is a fragment of code I use to achieve this:

        if(file != null)
        {
            var st         


        
3条回答
  •  抹茶落季
    2021-01-04 08:45

    Try this instead of string text = dataReader.ReadString(numbytes):

    dataReader.ReadBytes(stream);
    string text = Convert.ToBase64String(stream);
    

提交回复
热议问题