Hi, I think g_utf8_validate() should return FALSE if a length for the string is provided and the string contains a nul byte within the length. As currently written, it looks like it will return TRUE but only validate up to the nul byte. Havoc