Aus gegebenem Anlass (pm anfrage).
Ich habe meine ricEncode funktion upgedated, und nun sollts auch mit japanisch hinhauen.
Ich hoffe wir kriegen feedback.
Anbei die funktion, vielleicht könnt ma ja die ext updaten! 😉
function ricEncode($content) {
$enc = mb_detect_encoding($content, "auto");
$convmap = array(
0x0080, 0x00ff, 0, 0x00ff,
0x0400, 0x04ff, 4, 0x04ff,
0xe000, 0xe03e, 0x1040, 0xffff,
0xe03f, 0xe0bb, 0x1041, 0xffff,
0xe0bc, 0xe0fa, 0x1084, 0xffff,
0xe0fb, 0xe177, 0x1085, 0xffff,
0xe178, 0xe1b6, 0x10c8, 0xffff,
0xe1b7, 0xe233, 0x10c9, 0xffff,
0xe234, 0xe272, 0x110c, 0xffff,
0xe273, 0xe2ef, 0x110d, 0xffff,
0xe2f0, 0xe32e, 0x1150, 0xffff,
0xe32f, 0xe3ab, 0x1151, 0xffff);
return mb_encode_numericentity($content,$convmap, $enc);
}
lgc
ps: ich such immernoch kyrillisch!!! also wenn jemand was weiss, her damit! 😉