in reply to Is utf8, ascii ?
utf8::valid($string)
But presumably, you don't want to just discard data, Instead, you want to convert it to UTF8 and insert it safely. If you know what character set it is in, then use Encode to convert it. Otherwise, as you have done, you can use Encode::Guess to try to figure out what character set it is first.
Clint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is utf8, ascii ?
by rootcho (Pilgrim) on Aug 07, 2007 at 19:38 UTC | |
by clinton (Priest) on Aug 07, 2007 at 19:43 UTC |