Skip to content

Commit 3ec9420

Browse files
authored
Update QRCoder/QRCodeGenerator.cs
1 parent bf04694 commit 3ec9420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QRCoder/QRCodeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ private static int GetDataLength(EncodingMode encoding, string plainText, BitArr
717717

718718
bool IsUtf8()
719719
{
720-
return (encoding == EncodingMode.Byte && (!IsValidISO(plainText) || forceUtf8));
720+
return (encoding == EncodingMode.Byte && (forceUtf8 || !IsValidISO(plainText)));
721721
}
722722
}
723723

0 commit comments

Comments
 (0)