Database in MacOS and Windows

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Aug 16 14:17:18 CDT 2004


On 8/16/04 1:42 PM, "Claudius Sailer" <Claudius at sailer-online.de> wrote:

> Hi,
> 
> sorry that I am the speaker of an other valentina-user, but he is not
> able to understand english.
> He uses following code
> 
> reading from cursor:
>    #if TargetMacOS then
>      EfOrt.text =
> defineencoding(wCursor.Field("Ort").getstring,encodings.MacRoman)
>    #endif
>    #if TargetWin32 then
>      EfOrt.text =
> defineencoding(wCursor.Field("Ort").getstring,encodings.SystemDefault)
>    #endif
> 
> writing to cursor:
>    #if TargetMacOS then
>  
> wCursor.Field("Ort").setstring(convertencoding(EFOrt.Text,encodings.macr
> oman))
>    #endif
>    #if TargetWin32 then
>  
> wCursor.Field("Ort").setstring(convertencoding(EFOrt.Text,encodings.Syst
> emDefault))
>    #endif
> 
> 
> but on windows he doesn't get the correct german 'Umlaute'. Whats the
> possible fault?
> he also generated a new database on windows and filled this database
> with data and read from database and get also wrong characters.

Hi Claudius,

Does 

    convertencoding(EFOrt.Text,encodings.SystemDefault)

Produce Umlaute ?

I think this is the first point to check.


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