TIA,
Nash
The TAB format attribute file, the DAT file, is basically just a
propriatary DBF file. I.e., using an 8 bit encoding.
I.e., it needs to contain the specific encoding instruction. This cannot
be set in the table, but must be set before import.
If from MIF/MID, the MIF file contains an encoding clause, which here is
always -- Charset "WindowsLatin1"
My guess would be that you need to use Charset "WindowsLatin2", or at
least something different.
Have you tried to export your table to MIF/MID, and check the "Charset"
in the MIF, and the textual attribute values in the MID ?
We're still (!) waiting for version 9 here, so I can't test it for you.
Besides, my Windows is "WindowsLatin1", so it might not be a proper test
anyway.
Best regards / Med venlig hilsen
Lars I. Nielsen
GisPro
Nash skrev:
!table
!version 300
!charset WindowsLatin2
Definition Table
Type NATIVE Charset "WindowsLatin1"
Fields 2
ID Integer ;
Naziv Char (30) ;
ReadOnly
begin_metadata
... and so on...
When I changed "WindowsLatin1" to "WindowsLatin2" to match the charset
clause at the beginning, everything worked fine. However, previous
version of MapInfo used WindowsLatin1. This is just stupid, if you ask
me.
Thanks, Lars
On 6 , 16:26, "Lars I. Nielsen (GisPro)" <L...@gispro.dk> wrote:
> Hi Nash,
>
> The TAB format attribute file, the DAT file, is basically just a
> propriatary DBF file. I.e., using an 8 bit encoding.
>
> I.e., it needs to contain the specific encoding instruction. This cannot
> be set in the table, but must be set before import.
>
> If from MIF/MID, the MIF file contains an encoding clause, which here is
> always -- Charset "WindowsLatin1"
>
> My guess would be that you need to use Charset "WindowsLatin2", or at
> least something different.
>
-----------snipped the rest-----------------------------------
Like I said, stupid. Now I'll have to check every table before I open
it for the first time in ver. 9 and change Latin1 to Latin2... I hope
that will help me avoid editing table entries.
Not at all surprising. MI Pros handling of foreign character tables (
i e non-US ) has for a long time been ad hoc more than anything else.
And since they abandoned the beta cycle of localized versions, no one
will notice before it hits the customers.
Sadly, Mats.E
2007/10/7, Nash <lon...@yahoo.com>:
From: | Nash <lon...@yahoo.com> on 10/06/2007 06:14 AM MST |
To: | MapInfo-L <mapi...@googlegroups.com> |
cc: | |
Subject: | [MI-L] Trouble with Unicode (I guess) in MapInfo 9 |
From: | "Mats Elfström" <mats.e...@gmail.com> on 10/07/2007 11:50 AM ZE2 |
To: | mapi...@googlegroups.com |
cc: | |
Subject: | [MI-L] Re: Trouble with Unicode (I guess) in MapInfo 9 |
Cheers,
Nash
Funny you should mention UT, because that is one component of MI Pro
which has suffered badly from the character table changes during the
years. I still think you can't translate a swedish indexed tab file
with UT.
Eric B, I used the term 'ad hoc' in this sense: "For this purpose", as
signifying a solution that has been custom designed for a specific
problem, is non-generalizable, and cannot be adapted to other
purposes.
I maintain that this is an adequate description.
I did not mean the derogatory sense: A makeshift solution, inadequate
planning, or improvised event.
But the difference, I admit, is sometimes subtle.
Now you have probably arrived at a wise and lasting solution by using
standard Windows behaviour.
However, my concern is that these changes and attempts to solve this
problem, and then changing the solution seems to have been undertaken
without asking for feedback from the target group, the non US users.
Or providing tools to update legacy map files when changes were deemed
necessary.
Regards, Mats.E
2007/10/8, Nash <lon...@yahoo.com>:
It looks like you have found a solution for your immediate problem,
Nash, but I thought I would post some observations on how to deal with
non-Latin1 data in MIPro.
Firstly a word on codepages - the 8-bit codepage only has enough room
for 191 characters, unlike unicode which is 16-bit and supports
thousands. This means that the entire spectrum of characters is split
up into a number of sets. These sets can also be referred to by their
ISO code. WindowsLatin1 is ISO 8859-1 (or ISO8859_1 in MIPro). For
more info check out http://en.wikipedia.org/wiki/ISO_8859-1.
Now that PB MapInfo is producing many countries for StreetPro using a
variety of character sets (Latin1, Latin2, Baltic, Cyrillic, Greek,
Turkish, Arabic), we had to change our processes to make sure non-
Latin characters are preserved. Firstly you generally need to change
the regional settings for non-unicode programs to the language that
you are using, otherwise you will see all diacritic characters as
underscores. You can do this in Windows by going to Control Panel,
Regional and Language Options, then click the Advanced tab and change
the language in the drop-down. You will need to restart your computer
for this to take effect.
Next, to see characters correctly in browsers you may need to change
the text font to either your local Arial variant (Arial CE, Arial CYR
etc) or a unicode font such as Tahoma. Also, the label font may need
to be changed as well for correct characters on maps.
Lastly, if you get the underscores when saving a new copy of a table,
you should use a commit statement specifying the charset. eg
Commit table newtab as "filename.tab" Type Native Charset
"WindowsLatin2", otherwise the table may save in WindowsLatin1 and
you'll lose your non-Latin1 chars.
I have found in the past that if you just change WindowsLatin1 to
WindowsLatin2 in the tabfile, the special characters sometimes convert
to underscores permanently (possibly because the DAT file must be
changed as well).
Basically, make sure you always keep an original copy just in case you
lose your names.
Good Luck!
---
Anika Claire
Sr Data Engineer, PB MapInfo EMEA Data Team
I don't have an "Advanced" tab in that dialog in Control Panel,
probably because I don't have administrator privileges. I'll try and
catch the system administrator and get him to change that :)
Cheers,
Nash
On 8 , 16:56, Kianastar <kianas...@gmail.com> wrote:
> Hi guys,
>
> It looks like you have found a solution for your immediate problem,
> Nash, but I thought I would post some observations on how to deal with
> non-Latin1 data in MIPro.
>
> Firstly a word on codepages - the 8-bit codepage only has enough room
> for 191 characters, unlike unicode which is 16-bit and supports
> thousands. This means that the entire spectrum of characters is split
> up into a number of sets. These sets can also be referred to by their
> ISO code. WindowsLatin1 is ISO 8859-1 (or ISO8859_1 in MIPro). For
> more info check outhttp://en.wikipedia.org/wiki/ISO_8859-1.
> > On 8 , 01:25, Eric_Blasenh...@mapinfo.com wrote:- -
>
> - -