Skip to content

Commit

Permalink
Fix unreadable Shift-JIS encoded QR Code
Browse files Browse the repository at this point in the history
  • Loading branch information
askdkc authored Mar 21, 2024
1 parent c01758c commit 6e015af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Encoder/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private static function getAlphanumericCode(int $code) : int
private static function chooseMode(string $content, string $encoding = null) : Mode
{
if (null !== $encoding && 0 === strcasecmp($encoding, 'SHIFT-JIS')) {
return self::isOnlyDoubleByteKanji($content) ? Mode::KANJI() : Mode::BYTE();
return Mode::BYTE();

Check warning on line 166 in src/Encoder/Encoder.php

View check run for this annotation

Codecov / codecov/patch

src/Encoder/Encoder.php#L166

Added line #L166 was not covered by tests
}

$hasNumeric = false;
Expand Down

0 comments on commit 6e015af

Please sign in to comment.