V4RB2 UTF-8 and UTF-16

Karl Grob kgrob at mus.ch
Wed Mar 30 11:19:03 CST 2005


Thanks
But why does Valentina Studio not show the correct encoding?

s is UTF8

>> tmp = s
>>     cur.StringField(HKKAdb.Rec_Benutzer.Fld_BenName.Name).Value = tmp
>> -> String-Fields are filled, but Müller becomes M ller (in Valentina
>> Studio)

Am 30.03.2005 um 11:06 schrieb Ruslan Zasukhin:

> On 3/30/05 11:03 AM, "Karl Grob" <kgrob at mus.ch> wrote:
>
>> tmp is just for Debugging purposes
>> Database is UTF-16
>>
>> s = "Müller" // = UTF-8
>>     tmp = toValDB(s)
>>     cur.StringField(HKKAdb.Rec_Benutzer.Fld_BenName.Name).Value = tmp
>> -> Leaves the string-Field empty
>>
>>     tmp = NthField(s)
>>     cur.StringField(HKKAdb.Rec_Benutzer.Fld_BenName.Name).Value = tmp
>> -> String-Fields are filled, but Müller becomes M ller (in Valentina
>> Studio)
>>
>> It seems that the Database does not accept UTF-16-Strings if itself is
>> UTF-16 and that the encoding of other strings is not correct?
>>
>> Database is UTF-8:
>> Valentina Studio crashes immediately, no chance to check.
>
> Hi Karl,
>
> NOTE:
>
> * right now you can use only
>
>     db.StorageEncoding = UTF16
>
>     this is default in fact.
>     do not set here UTF8 for now
>
>
> * all strings to V4RB must go as UTF8
>     and you get back UTF8 strings
>
>
>
> -- 
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>

------
Karl Grob
Glockengasse 4
CH-8001 Zürich

kgrob at mus.ch



More information about the Valentina mailing list