Re: detecting katakana vs hiragana
| From: | Moriyoshi Koizumi | Date: | Fri, 28 Feb 2003 16:04:13 +0000 |
| Subject: | Re: detecting katakana vs hiragana | ||
| References: | 1 2 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-474@lists.php.net to get a copy of this message | ||
On Fri, 28 Feb 2003 14:43:38 +0100
"Simon Dedeyne" <Simon.Dedeyne@psy.kuleuven.ac.be> wrote:
> >
> I haven't tried the mb_ereg solution yet, but I thought of doing something with
> mb_convert_kana()
> Here's a little example script. I try it, but nothing gets converted at all! (I have mb
> functions
> Enabled and am using PHP 4.3.0 on a Window XP system). Why doesn’t this work?
Are you sure that you did set the right encoding (UTF-8) to mbstring.internal_encoding?
Or try using the third parameter: mb_convert_kana($str, "C", "UTF-8") as another
solution.
Moriyoshi