fixed #3094: Use UTF-8 for QR code encoding

This commit is contained in:
Jaex 2018-01-25 10:20:14 +03:00
parent 29a3be6859
commit b6094fc9c3

View file

@ -35,6 +35,7 @@ You should have received a copy of the GNU General Public License
using System.Windows.Forms;
using ZXing;
using ZXing.Common;
using ZXing.QrCode;
using ZXing.Rendering;
namespace ShareX
@ -98,12 +99,12 @@ private void EncodeText(string text)
BarcodeWriter writer = new BarcodeWriter
{
Format = BarcodeFormat.QR_CODE,
Options = new EncodingOptions
Options = new QrCodeEncodingOptions
{
Width = pbQRCode.Width,
Height = pbQRCode.Height
},
Renderer = new BitmapRenderer()
Height = pbQRCode.Height,
CharacterSet = "UTF-8"
}
};
pbQRCode.Image = writer.Write(text);