mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
fixed #3094: Use UTF-8 for QR code encoding
This commit is contained in:
parent
29a3be6859
commit
b6094fc9c3
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue