Can anyone tell me a way to retrieve the correct field length from a field? What is happening now is when the field is utf-8, mysql_field_len() returns the field length times three. So say a field has a 20 character limit, it will return 60. Right now I'm dividing the output by three but I'm guessing the script would not function properly if the table had a different collation.
Any help or alternatives would be appreciated.