|
-
Feb 1st, 2012, 06:19 AM
#6
Re: VB6 - Client-Server Using PropertyBag
Oh yeah, BTW:
Using StrConv() as you suggest can cut the size of the Contents array almost in half, I agree. But there is a caveat: what you suggest is a low-fidelity process that converts to ANSI using the current codepage. This means if the server and clients have different locale settings you can run into trouble for any characters outside the 7-bit ASCII range.
One alternative in cases where you need it (i.e. you are shipping large String values) would be to use API calls or the ADODB.Stream object to convert Unicode (UTF-16LE) to and from UTF-8. This is often just as compact, but where you have any chars above &H7F they'll be preserved instead of mutated or turned into "?" values.
Last edited by dilettante; Feb 1st, 2012 at 06:29 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|