Skip to content

Commit

Permalink
Build: simplify creating UTF-8 character
Browse files Browse the repository at this point in the history
  • Loading branch information
forrest79 committed Apr 9, 2024
1 parent 8f95491 commit 5fa7bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build-sql
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ foreach ($transliterate as $x => $items) {
}

// create UTF-8 char by int value
$text = mb_convert_encoding(sprintf('&#%s;', intval($utf8Char)), 'UTF-8', 'HTML-ENTITIES');
$text = mb_chr($utf8Char);

// (instead of [?] we want '') || (we don't want to tolerate Win-1252 input, see x00.pm)
if (($item == '[?]') || ($utf8Char <= 159)) {
Expand Down

0 comments on commit 5fa7bb7

Please sign in to comment.