Recent

Author Topic: 32 bit vs. 64 bit vs. UTF8  (Read 5551 times)

DrMac

  • Newbie
  • Posts: 6
32 bit vs. 64 bit vs. UTF8
« on: November 05, 2008, 11:48:37 am »
I have a MySQL database (full UTF8 encoded) and two Debian Linux system (one 32 bit, one 64 bit), both of them full UTF8 environment.
I try the following simple project:
- mysql50connect
- sqlquery
- datasource
- dbgrid

When I compiled the project in the 32 bit system, the dbgrid displayed the fields correctly. But under the 64 bit system the special hungarian characters (like áéőű) doesn't displayed, only a strange character (a rectangle and an X inside).

What's the problem under the 64 bit system?

Edit:

32 bit system: Lazarus 0.9.24, FreePascal 2.2.0
64 bit system: Lazarus 0.9.26, FreePascal 2.2.2

bobo

  • Full Member
  • ***
  • Posts: 171
32 bit vs. 64 bit vs. UTF8
« Reply #1 on: November 08, 2008, 11:38:27 am »
From 0.9.26 Lazarus is Unicode (UTF8) .
All controls require UTF8 encoded strings.

This might help a little:
http://lists.freepascal.org/lists/fpc-devel/2008-September/014949.html

Also make sure that the font you use has those special characters.

DrMac

  • Newbie
  • Posts: 6
32 bit vs. 64 bit vs. UTF8
« Reply #2 on: November 08, 2008, 05:41:37 pm »
In the meantime I upgraded my 32 bit system, so now both of my systems have Lazarus 0.9.26 and Freepascal 2.2.2.
But the problem remain the same. In 32 bit system all special characters (áéőú etc.) are correctly appear, but in the 64 bit system don't. All parameters (connection settings, dbgrid font etc) are same.

 

TinyPortal © 2005-2018