Merge branch 'QA_4_5'
This commit is contained in:
commit
b30e0aa194
@ -36,6 +36,7 @@ phpMyAdmin - ChangeLog
|
||||
- issue #11783 Avoid syntax error in javascript messages on invalid PHP setting for max_input_vars
|
||||
- issue #11784 Properly handle errors in upacking zip archive
|
||||
- issue #11785 Set PHP's internal encoding to UTF-8
|
||||
- issue #11786 Fixed Kanji encoding in some specific cases
|
||||
|
||||
4.5.3.1 (2015-12-25)
|
||||
- issue #11774 Undefined offset 2
|
||||
|
||||
@ -82,6 +82,9 @@ function PMA_Kanji_strConv($str, $enc, $kana)
|
||||
return $str;
|
||||
}
|
||||
$string_encoding = mb_detect_encoding($str, $kanji_encoding_list);
|
||||
if ($string_encoding === false) {
|
||||
$string_encoding = 'utf-8';
|
||||
}
|
||||
|
||||
if ($kana == 'kana') {
|
||||
$dist = mb_convert_kana($str, 'KV', $string_encoding);
|
||||
|
||||
@ -175,6 +175,9 @@ function _get_codeset($domain=null) {
|
||||
*/
|
||||
function _encode($text) {
|
||||
$source_encoding = mb_detect_encoding($text);
|
||||
if ($source_encoding === false) {
|
||||
$source_encoding = 'utf-8';
|
||||
}
|
||||
$target_encoding = _get_codeset();
|
||||
if ($source_encoding != $target_encoding) {
|
||||
return mb_convert_encoding($text, $target_encoding, $source_encoding);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user