V4RB2 UTF-8 and UTF-16

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Mar 30 12:06:52 CST 2005


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]




More information about the Valentina mailing list