#20128·phpmyadmin

[Bug]: ErrorException: iconv(): Wrong encoding, conversion from "utf-8" to "SJIS-win//TRANSLIT" is not allowed

Author: liviuconcioiuCreated Feb 18, 2026Updated Sep 10, 2026
LabelsBug

Describe the bug

Internal error in .\libraries\classes\Encoding.php#208
ErrorException: iconv(): Wrong encoding, conversion from "utf-8" to "SJIS-win//TRANSLIT" is not allowed

How to Reproduce

sql
CREATE TABLE `test_table` (
  `id` int(11) NOT NULL,
  `col` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

INSERT INTO `test_table` (`id`, `col`) VALUES (1, 'テスト');
  1. Export table as SQL with custom options
  2. Select SJIS-win from Character set of the file.
  3. Click on Export
  4. See error

Screenshots

https://github.com/user-attachments/assets/5903b8f8-ce90-4545-85e5-ff0303b114d3

PHP version

8.5.3

phpMyAdmin version

5.2.4-dev, 6.0.0-dev