NYCPHP Meetup

NYPHP.org

[nycphp-talk] enforcing Latin-1 input

Mikko Rantalainen mikko.rantalainen at peda.net
Wed Nov 30 05:55:15 EST 2005


Allen Shaw wrote:
> on which our in-house project is based.  May I use a modified version of 
> the code below in that GPL'd project?
> 
> Best Regards,
> Allen Shaw
> 
> Mikko Rantalainen wrote:
> 
>>I'm using the following function:
>>
>>function isValidUTF8String($Str)

I think it's okay. It's pretty much identical to one mentioned in 
PHP manual (search for "seems_utf8").

You might also want to check the comments in
http://php.net/utf8_encode
and
http://php.net/utf8_decode

-- 
Mikko



More information about the talk mailing list