I’ve searched the solutions for days but still can’t get the app running in my Lumia 520 because of this encoding problem. I tried the methods in the following webpage but still failed
I’ve checked that I’ve installed .net framework 3.5 ( includes .net 2.0 and 3.0) in my Windows 8.
I also changed the Api compatibility level in Unity editor but both .net 2.0 and .net 2.0 subset failed.
I also tried to use Portable.Text.Encoding
https://zxingnet.codeplex.com/discussions/540700
but failed because unity won’t allow “unsafe” methods.
The error is not codepage specific, for example, I got the same error when using the following codes
string metaTxt = Encoding.GetEncoding (932).GetString (metaByte);
string metaTxt = Encoding.GetEncoding (“us-ascii”).GetString (metaByte);
string metaTxt = Encoding.Default.GetString (metaByte);
string metaTxt = Encoding.ASCII.GetString (metaByte);
The codes above work perfectly in the editor, windows exe version and web player version but failed in wp8
Error building Player: Exception: Error: method System.String System.Text.Encoding::GetString(System.Byte[ ])
doesn’t exist in target framework. It is referenced from Assembly-CSharp.dll at System.Collections.Generic.List`1<System.String>
I am using Windows 8.1 Pro x64, please help, thanks!