View Single Post
Old 02-04-2005, 04:12 AM   #1
Edomondo
Orange Mole
 
Edomondo's Avatar
 
Join Date: Jan 2004
Location: In outer space
Posts: 37
Thumbs up Small fix for Japanese indexing

Hi there.

UTF-8 compatible PhpDig is a great tool! Thank you Charter and all contributors!

Because of half-width (Hankaku) and full-width (Zenkaku) characters in Japanese, the following search won't return the same results depending on the characters used in the original page :
"999" and "999" (Half-width <> Full-Width)
"Test" and "Test" (Half-width <> Full-Width)
"アイウエオ" and "アイウエオ" (Full-width <> Half-Width)
(Sorry for those who can't read asian characters)

May I suggest to add in robot_functions.php on line 188 the following line?

PHP Code:
$text mb_convert_kana($textKVa"UTF-8"); 
This way, all alphanumeric full-width characters will be changed in their half-width counterparts and all half-width katakana will turn into full-width katakana.

I recommend to add this line in the future releases of PHPdig.
Edomondo is offline   Reply With Quote