John Machin wrote: > Actually, what Willie was concerned about was some cockamamie DBMS > which required to be fed Unicode, which it encoded as UTF-8, but > silently truncated if it was more than the n in varchar(n) ... or > something like that. > > So all he needs is a boolean result: u.willitfit(encoding, width)
at what point in the program would that method be used ? how large are the strings, for typical cases ? </F> -- http://mail.python.org/mailman/listinfo/python-list