on 2011 Nov 04 3:20 AM
I am trying to migrate the Sybase Anywhere database from version 6.0 to 12. I am using Sybase Central to 'unload the data and structure' and load to the new database. The migration is successful, however in the new database the non-english characters like ä
, ö
become unreadable, such as Σ
and ÷
etc.
I think it is some character encoding problem. How can I fix it? Thanks
Rebuilding databases where the original database collation does not match the character set stored in the database can be tricky. A common issue in early SA databases was databases using collations with cp850 (DOS character set) talking to Windows applications loading the database with cp1252 (Windows character set). Since early databases did not have char set conversion, or had it but it was off by default, it was possible to work for years without realizing that the data and collation did not match.
To fix a situation like this, the essential steps are:
If the original database contains data with mixed and incompatible char sets, manual cleanup will be required. Unload the data without conversion, use an editor that can handle the characters in the files, and clean up the data before attempting to load it into the new database.
Here is a description of some of the considerations and the tools available in SA12: http://dcx.sybase.com/index.html#1201/en/dbadmin/changing-collation-natlang.html*d5e29036
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create the new database manually using e.g. dbinit or sybase central and define the correct collation and encoding for the new database. Then unload the old database into the existing new database. See the -ac command line switch of dbunload or use the sybase central wizard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you can specify the collation your original database was using, and the one you are using for the new one, someone may be able to spot the problem.
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.