Unicode, Set up for MC 2.4.3 on Mac OS9.1?
Charles Yeomans
yeomans at desuetude.com
Mon Apr 7 13:42:10 CDT 2003
On Monday, April 7, 2003, at 01:15 PM, Ruslan Zasukhin wrote:
> on 4/7/03 7:34 PM, Charles Yeomans at yeomans at desuetude.com wrote:
>
>>>>> But I wonder, what you say about this way:
>>>>>
>>>>> -- We simply add 2 more languages for String and Text fields.
>>>>> "UTF-8" and "UTF-16"
>>>>>
>>>>> -- at least for 1.x version.
>>>>>
>>>>> -- for UTF16, if you say VarChar[504] then
>>>>> GetMaxStringLength() will return 257 chars.
>>>>>
>>>>
>>>> what GetMaxStringLength() will return for UTF8?
>>>
>>> :-) good question.
>>>
>>> Well, I think it is correct to return 504,
>>> Because this is MAXIMUM possible number.
>>> But we can have less chars also.
>>
>>
>> I think that MaxLength should return the length in bytes, as it always
>> has.
>
> No, you mean GetBytes(), this function really will return 504.
>
> In fact I have confuse you,
> function GetMaxText() exists only in C++
Or maybe I have confused myself -- what should the V4Rb function
MaxLength return?
Charles Yeomans
More information about the Valentina
mailing list