Hello.

I need to import a MDB database to my MySQL database, but I have some
problems with charset in MDB.

ñ, tildes, and any other character out of ascii charset is deleted when
hk_classes gives me data.

For example: "*El vino mejoró con los años*" is "translated" to "*El vino
mejor con los aos*".

Is there eny option to change the character set to database object. I tried
to use db.set_databasecharset('any') but no changes.

Curiously, Knoda open the MDB file with right charset...

My code:
driver = hk_classes.hk_drivermanager()
con = driver.new_connection('mdb')
db = con.new_database( 'myfile.mdb')
db.set_databasecharset('some-charset')

table = db.new_table( 'mytable')
table.enable()

table.first()
print table.show_currentrow()
# and here it shows bad-encode data

Any help will be welcomed. Thank you.

Sorry for my bad english.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Hk-classes-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hk-classes-discuss

Reply via email to