V4RB, Jon, project /// More explanation.
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Sep 15 23:38:13 CDT 2004
On 9/15/04 9:19 PM, "jda" <jda at his.com> wrote:
>> Vstring(50) -- this is 50 chars
>>> VarChar(50) -- this is 50 chars
>> Text -- unlimited
>
>> in this case Valentina allocate on disk bytes
>
>> Vstring(50) -- 50 * 2 = 100 bytes on disk
>> VarChar(50) -- 4KB+ pages.
>
> I must say I don't like this at all. I, too, prefer to think in bytes.
>
> It seems for UTF-16 the 50 means characters, but for UTF-8 it means bytes.
>
> It should be the same for all encodings -- having it differ between
> encodings is *very* confusing and will certainly lead to many
> misunderstandings.
THIS IS WHY we have start this talk:
we also have to see this possible confusing.
> I suggest that 50 always means bytes, and if you want to store 50
> UTF-16 characters that you declare a VString of [100]/
:-)
I also have think about this.
On the other hand
> It seems for UTF-16 the 50 means characters, but for UTF-8 it means bytes.
All other single byte encoding except UTF8 means chars also.
So jon, everyting is visa versa:
1 UTF16 chars
2 Latin chars
3 Western chars
4 Russian chars
170 ...... chars
UTF8 bytes EXCEPTION.
Chars are better choice :-)
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina-beta
mailing list