Gyrus wrote:
> 
> Wouldn't Len(string) do it? Assuming 1 byte per character, of course. The
> only common exception I can think of is Unicode

I can think of a few more, like most Azian charsets.


> but if you're storing in Unicode, Len(string)*2 would do it.

Depends on the form of use. It can be anywhere between 1 and 4 bytes, 
and even different characters in one form of use can have a different 
number of octets. UTF-8, which is the default in CF MX, is one of the 
variable length types.

Filing an enhancement request for an Octet_Length() function might be a 
good idea (with exactly that name, that way it is the same as the SQL 
Octet_Length() function).

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to