Skip to content

Fix #19728 - Match available charsets case-insensitively#20329

Open
eyupcanakman wants to merge 1 commit into
phpmyadmin:QA_5_2from
eyupcanakman:fix/csv-export-charset-case-19728
Open

Fix #19728 - Match available charsets case-insensitively#20329
eyupcanakman wants to merge 1 commit into
phpmyadmin:QA_5_2from
eyupcanakman:fix/csv-export-charset-case-19728

Conversation

@eyupcanakman

Copy link
Copy Markdown
Contributor

Description

Encoding::listEncodings() applied strtolower to mb_list_encodings() and matched the result against AvailableCharsets with a case-sensitive array_intersect, so uppercase entries like SJIS were dropped from the supported list. Selecting SJIS for a CSV export then had no effect and the file stayed UTF-8. The mbstring branch now matches the two ignoring case.

Fixes #19728.

Encoding::listEncodings() applied strtolower to mb_list_encodings() and matched the result against AvailableCharsets with a case-sensitive array_intersect, so uppercase entries like SJIS were dropped and selecting SJIS for a CSV export had no effect.

Signed-off-by: Eyüp Can Akman <eyupcanakman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant