Jump to content

exo_duz

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

exo_duz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks to effigy for his input I figured it out. For all those having trouble I did this: According to the website which contains all the Japanese Unicode Lib. http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml //convert japanese characters $url = mb_convert_kana($url, "asKHV"); //remove all symbols //table provided at http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml $pattern = '/[^\wぁ-ゔァ-ヺー\x{4E00}-\x{9FAF}_\-]+/u'; $url = preg_replace($pattern, '+', $url); Just in case anyone ever needs to do this. The function will convert all the characters first using the mb_convert_kanahttp://php.net/mb_kana_convert function then will remove all Japanese Symbols and only leave Hiragana, Katakana and Kanji. Hope this helps anyone having this problem.
  2. effigy... yes they are.... i will try that... thanks
  3. Hi all, Been scratching my head about this all week. Is there a way to create a Regex statement to get all Kanji characters in Japanese? I am creating a PHP website which uses pretty URLs and would like to get this up in the URI. The only thing is that with the mb_ereg_replace() function which is a multibyte regex function it can only pick up the Hiragana and Katakana. http://jp2.php.net/mb_ereg_replace According to that, in the first example you can do that but not the Kanji. Is there a way to do it? Thanks a lot for your help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.