ZXing.Net icon indicating copy to clipboard operation
ZXing.Net copied to clipboard

SJIS QR Code support for Mobile devices with Unity

Open from2001 opened this issue 3 years ago • 0 comments

ZXing.Net can handle SJIS (Shift JIS)QR code on Windows / Mac with Unity project. However, it turned out that the same code doesn't work on Android/iOS devices.

DecodedBitStreamParser.cs result.Append(Encoding.GetEncoding(encoding).GetString(readBytes, 0, readBytes.Length)); throws a following error when encoding="SJIS" NotSupportedException: Encoding 932 data could not be found. Make sure you have correct international codeset assembly installed and enabled.

The solution of the problem is to add I18N.dll and I18N.CJK.dll into Unity project from Editor\Data\MonoBleedingEdge\lib\mono\unityjit under Unity editor installed folder.

I think mentioning the instruction somewhere in README or an error message would be helpful for Unity mobile developers.

SJIS

from2001 avatar May 01 '21 15:05 from2001