I have done some testing on your problem and came to the conclusion that is
the PACK command that changes the charset. It is not because the table has
been emptied, or because it was edited and saved; only a "pack" as a MB
statement or a MI menu command will do it.

There is some "justification" to it in the sense that packing involves
making a copy of the table without the deleted records and saving that copy
in the place of the original. In that procedure, MI refers probably to the
platform settings for the charset instead of keeping the original one. A
bug? Or an oversight? The result is the same. It should be looked into.

However you must agree that if I open a "WindowsHebrew" file on a
"WindowsLatin" platform the display will not be 100% correct and the reverse
is also true. I do not know if MI in the Windows environment is able to
handle that conversion on the fly.

Jacques Paris
e-mail  [EMAIL PROTECTED]
MapBasic-MapInfo support  http://www.paris-pc-gis.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: January 10, 2002 04:09
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: MI-L Charset change on empty table

Hi Laurence,

You should definitely log this errornous behaviour as a bug with MapInfo,
if you haven't already done so.

Imagine if MI Pro tried to be just as "smart" by resetting the
projection/coordsys (to lat/long) if the table was (accidentially) emptied
!!!

Best regards / Med venlig hilsen
Lars Nielsen

**********************************************************
Lars Nielsen                                [EMAIL PROTECTED]
Sr. Developer, MapBasic & MapXtreme Specialist
Kampsax/MapInfo, Odense              http://www.mapinfo.dk
Authorized MapInfo Distributor in Denmark & Norway
Address: Rugaardsvej 55, DK-5000 Odense C
Telephone: +45 6313-5000           Facsimile +45 6313-5090
**********************************************************
"Klik ind p� http://www.kortal.dk og se det hele lidt fra oven!"
"Visit http://www.kortal.dk and see Denmark from above!"



                    "Warren Vick, Europa
                    Technologies Ltd."                   Til:    "Laurence
Seeff" <[EMAIL PROTECTED]>, "MI-List"
                    <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
                    Sendt af:                            cc:
                    [EMAIL PROTECTED]        Vedr.:  RE: MI-L
Charset change on empty table
                    onsmag.com


                    10-01-02 02:22
                    Besvar venligst til "Warren
                    Vick, Europa Technologies
                    Ltd."





Hello Laurence,

I guess MapInfo is trying to be clever in switching to a native character
set. You could try the following manual save in the MapBasic window:

Commit Table YourTable as "MyFile" Type DBF Charset "CodePage437"

Even on a blank table, it should honour this character set choice.

Regards,
Warren Vick
Europa Technologies Ltd.
http://www.europa-tech.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Laurence
Seeff
Sent: Wednesday, January 09, 2002 9:44 AM
To: MI-List
Subject: MI-L Charset change on empty table




Hi,

I would appreciate any ideas on an frustrating bug regarding character =
sets.
I have a tab file with the following character sets definition:

Type DBF Charset "CodePage437"

In the Mapbasic code I open this table delete all the records (under =
certain circumstances), save and pack it. MapInfo automatically changes =
the charset to another character set:

Type DBF Charset "WindowsHebrew"

I can get around it by renaming, saving as, dropping etc - basically =
dirty code cluttering up things. Any suggestions?

Thanks and will sum,

Laurence Seeff
Points Business Mapping Ltd.
22 Tuval St., Ramat Gan, 52522, Israel
=20
Tel:  +972-3-6126216
Fax: +972-3-6126323
Email: [EMAIL PROTECTED]
Web: www.points.co.il



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.






_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to