unicode, bytes redux
Fredrik Lundh
fredrik at pythonware.com
Mon Sep 25 09:19:33 EDT 2006
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>
More information about the Python-list
mailing list