V4RB, Jon, project /// More explanation.

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Sep 15 23:27:01 CDT 2004


On 9/15/04 9:19 PM, "jda" <jda at his.com> wrote:

>>  say I define some field as UTF8 10 chars maxlenght
>>>> I store some 10 chars string with no double bytes chars ("abcdefghij")
>>>>  the Vale kernel converts all in UTF16
>>>> 
>>>>  result: I loose half my data
>>>> 
>>>>  I got it well?
>>>> 
>>> 
>>>  No -- at least that's not how I understand it.
>> 
>> Yes, Jon, you loose.
>> 
>> On disk is reserved 10 bytes for Vstring field.
>> So if you put 10 chars each 2 bytes then this is 20 bytes.
>> On disk can be stored only 10 bytes.
>> 
>> 
>> If, Erne, you will use VarChar(504), then all your 20 bytes will be written
>> to disk. No problems.
>> 
> 
> OK, I'm stupid, but I just don't get your explanation.
> 
> He defined the field as storageEncoding UTF-8, and set max length to
> 10. He has 10 chars to store. They are single byte characters.
> 
> Why won't all be stored and retrieved??????? They are stored as
> UTF-8, right, so one byte per character.

For english yes, for Russian no.

-- 
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