Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT ACCESS
problems with ordering, Croatian characters
Boris Kukec
2006-11-28 17:01:04.0
Hi, my name is Boris Kukec, I am using your JDBC driver for MS Access.
It works very good. I have just one, but big problem.

I have tables with Croatian characters like ����?
when a make order by, rows are not ordered corectly.

For example, correct ordering for column (COL1) is:
Aba
�iba
Zero

But select with order by COL1 returns:
Aba
Zero
�iba

Words with Croatian characters are at the end of the resultset, that is wrong, it should be like in first example.

Maybe I am doing somethig wrong. But every possible seting, like character set, or ordering in access database file is set to Cp1250 (code page for Croatia) and Croatian ordering, it does not help.


by
Re:problems with ordering, Croatian characters
HXTT Support
2006-11-30 01:16:20.0
>when a make order by, rows are not ordered corectly.
It's normal since HXTT Access doesn't support to set collation for order caluse now.
What's your sql? What's your MS Access version(95, 97, 2000,...)? Whether have you built index on col1?
Re:Re:problems with ordering, Croatian characters
Boris Kukec
2006-11-30 02:47:22.0
MS Access version ar 97 and 2000.
I have tryed with index and without index, result was the same.
Sql is very simple:
select col1 from table1 order by col1
Re:Re:problems with ordering, Croatian characters
Boris Kukec
2006-11-30 03:30:30.0
MS Access version ar 97 and 2000.
I have tryed with index and without index, result was the same.
Sql is very simple:
select col1 from table1 order by col1
Re:Re:Re:Re:problems with ordering, Croatian characters
HXTT Support
2006-11-30 03:35:30.0
That's resulted for ORDER BY clause is using unicode to sort. You can try
select col1 from table1 order by COLLATE(col1,'SLOVAK');

COLLATE(string1[,collation]): For multilingual sort in ORDER BY clause. Now collation can be 'DUTCH', 'GERMAN', 'ICELAND', 'SPANISH', 'RUSSIAN', 'CZECH', 'GREEK', 'SLOVAK', 'POLISH', 'TURKISH', 'HUNGARY', and 'MAZOVIA'. Without collation parameter, COLLATE function will try to utilize charSet property in Connection properties.

Re:Re:Re:Re:Re:problems with ordering, Croatian characters
HXTT Support
2006-11-30 03:36:24.0
Maybe:
select col1 from table1 order by COLLATE(col1,'Cp1250');

is the answer.
Re:Re:Re:Re:Re:Re:problems with ordering, Croatian characters
Boris Kukec
2006-11-30 11:47:08.0
It didn't help, but thanks any way.
We find another solution this time.
In our project, we added extra Text column for sort.
In this new colum we replaced Croatian characters with special substrings so
sortig works.
We also hope that this sortig problem will bi resolved in the future.
Re:Re:Re:Re:Re:Re:Re:problems with ordering, Croatian characters
HXTT Support
2006-11-30 22:58:14.0
v2.0.044 added CP850, CP852, CP866, CROATIAN, HEBREW, and SWEDISH sort for COLLATE function.

Now you can use:
select col1 from table1 order by COLLATE(col1,'CROATIAN');

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap