[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

order UTF-8 encoded Strings

gonzberg at gmx.de gonzberg at gmx.de
Wed Feb 27 12:45:32 PST 2008


  order UTF-8 encoded Strings
Thanks John,
ok, that was easy...

Gonz


-------- Original-Nachricht --------
> Datum: Wed, 27 Feb 2008 11:03:00 +0000
> Von: John Snelson <http://x-query.com/mailman/listinfo/talk>
> An: http://x-query.com/mailman/listinfo/talk
> CC: http://x-query.com/mailman/listinfo/talk
> Betreff: Re:  order UTF-8 encoded Strings

> Hi Gonz,
> 
> The "correct" answer is to use a collation - either a German specific 
> one or a case and diacritic insensitive one. Since the mechanism for 
> providing collations is implementation defined, how this is done will 
> depend on what XQuery engine you are using.
> 
> John
> 
> http://x-query.com/mailman/listinfo/talk wrote:
> > Hi all,
> > I retrieve UTF-8 encoded Strings from my database with this XQuery:
> > 
> > for $x in //text/country order by xs:string($x) ascending return
> xs:string($x)
> > 
> > This is the result, it is not ordered like I expected:
> > 
> > Deutschland
> > Italia
> > Oabcde
> > Ägypten
> > Österreich
> > 
> > Is this the correct order according to a default collation? How would I
> order it like this (which would be standard for German language):
> > 
> > Ägypten
> > Deutschland
> > Italia
> > Oabcde
> > Österreich
> > 
> > Thanks a lot, Gonz
> > 
> > 
> 
> 
> -- 
> John Snelson, Oracle Corporation            http://snelson.org.uk/john
> Berkeley DB XML:        http://www.oracle.com/database/berkeley-db/xml
> XQilla:                                  http://xqilla.sourceforge.net
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.