Home
%3CLINGO-SUB%20id%3D%22lingo-sub-609522%22%20slang%3D%22en-US%22%3EOAB%20sort%20orders%20and%20character%20handling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-609522%22%20slang%3D%22en-US%22%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3EIn%20Exchange%202000%20and%20earlier%2C%2010%25%20of%20Exchange%20users%20used%20the%20Offline%20Address%20Book%20was%20the%20statistic%20that%20was%20most%20often%20repeated%20to%20me.%26nbsp%3B%20But%20with%20Exchange%202003%20and%20Office%202003%2C%20that%20number%20has%20gone%20way%20up%20due%20to%20Outlook's%20usage%20of%20Cached%20Mode%20Exchange.%26nbsp%3B%20This%20means%20that%20everyone%20that%20uses%20Outlook%20in%20cached%20mode%20now%20downloads%20the%20Offline%20Address%20Book%20or%20OAB%2C%20and%20they%20may%20get%20a%20slightly%20different%20experience%20than%20they%20were%20used%20to.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3EBefore%20Cached%20Mode%20Exchange%2C%20clients%20would%20get%20their%20address%20books%20directly%20from%20the%20Active%20Directory.%26nbsp%3B%20As%20long%20as%20the%20global%20catalogs%20they%20were%20using%20had%20the%20client%20language%20installed%20(see%20KB%20%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fsupport.microsoft.com%2Fdefault.aspx%3Fscid%3Dkb%3Ben-us%3B301314%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3Ehttp%3A%2F%2Fsupport.microsoft.com%2Fdefault.aspx%3Fscid%3Dkb%3Ben-us%3B301314%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3E)%2C%20the%20Active%20Directory%20would%20sort%20the%20GAL%20for%20browsing%20using%20the%20correct%20sorting%20locale%20and%20return%20it%20to%20the%20client%20rendered%20in%20the%20right%20code%20page.%26nbsp%3B%20When%20the%20client%20actively%20searched%20for%20entries%2C%20again%2C%20the%20AD%20would%20use%20the%20sort%20locale%20of%20the%20client%20to%20compute%20the%20result.%26nbsp%3B%20When%20the%20OAB%20server%20generates%20the%20OAB%20files%2C%20it%20reads%20the%20entries%20from%20the%20AD%20sorted%20in%20the%20default%20sort%20order%20of%20the%20OAB%20server%20and%20builds%20the%20OAB%20search%20files%20using%20that%20same%20sort%20order.%26nbsp%3B%20Now%20in%20cached%20mode%2C%20since%20the%20OAB%20is%20sorted%20according%20to%20OAB%20server%20and%20not%20the%20client%2C%20it%20may%20not%20match%20the%20clients%20language%20locale.%26nbsp%3B%20This%20means%20that%20users%20may%20not%20be%20able%20to%20find%20entries%20in%20the%20GAL%20as%20easily%20because%20they're%20not%20sorted%20in%20the%20way%20the%20user%20expects.%26nbsp%3B%20%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3EBy%20default%2C%20Exchange%20Server%20creates%20a%20single%20default%20OAB%20with%20the%20Global%20Address%20List%20on%20the%20first%20server%20installed%20in%20the%20organization.%26nbsp%3B%20This%20works%20well%20if%20your%20users%20all%20have%20the%20same%20language%20set%20as%20default%20on%20their%20client%20computers.%26nbsp%3B%20But%20for%20those%20organizations%20who%20must%20support%20different%20client%20languages%20it%20now%20gets%20complex.%26nbsp%3B%20The%20OAB%20generation%20process%20in%20Exchange%20Server%202003%20can%20build%20two%20different%20versions%20of%20the%20OAB%3A%20a%20Unicode%20version%20and%20an%20ANSI%20version.%26nbsp%3B%20The%20Unicode%20version%20reads%20the%20Active%20Directory%20recipients%20in%20Unicode%20and%20keeps%20the%20data%20as%20Unicode%20when%20stored%20on%20the%20client.%26nbsp%3B%20It's%20up%20to%20the%20client%20to%20render%20the%20characters%20in%20the%20right%20code%20page.%26nbsp%3B%20However%20for%20the%20ANSI%20files%2C%20the%20OAB%20server%20renders%20the%20Unicode%20AD%20characters%20using%20the%20default%20code%20page%20of%20the%20server.%26nbsp%3B%20So%20if%20your%20OAB%20server%20is%20running%20on%20a%20US%20English%20Windows%20server%20and%20you%20have%20some%20Active%20Directory%20recipients%20with%20non-western%20characters%20in%20their%20properties%2C%20you're%20going%20to%20get%20question%20marks%20for%20those%20characters%20in%20the%20OAB%20data%20for%20the%20ANSI%20version%20of%20the%20OAB.%20%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3EFor%20the%20display%20names%20that%20can't%20be%20rendered%20in%20ANSI%20there%20is%20a%20work%20around.%26nbsp%3B%20If%20the%20AD%20or%20the%20OAB%20finds%20that%20characters%20in%20the%20displayname%20can't%20be%20rendered%20correctly%20in%20the%20current%20code%20page%2C%20they%20will%20then%20substitute%20the%20%22simple%20display%20name%22%20attribute%20for%20the%20display%20name.%26nbsp%3B%20If%20you%20have%20filled%20out%20this%20attribute%20then%20that%20text%20will%20show%20up%20instead%20of%20the%20original%20display%20name%20in%20the%20address%20book%20and%20on%20the%20property%20pages.%26nbsp%3B%20If%20it%20hasn't%20been%20set%2C%20the%20alias%20name%20will%20be%20used.%26nbsp%3B%20However%2C%20the%20records%20will%20not%20be%20resorted.%26nbsp%3B%20The%20simple%20display%20name%20will%20show%20up%20where%20the%20display%20name%20would%20have%20sorted%20to.%26nbsp%3B%20Since%20the%20display%20display%20name%20or%20alias%20may%20not%20have%20any%20relation%20to%20the%20display%20name%2C%20then%20the%20address%20book%20may%20not%20appear%20to%20be%20in%20the%20correct%20order%20for%20those%20entries.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3EThis%20leads%20us%20into%20sort%20order%20problems.%26nbsp%3B%20Alphabetical%20English%20is%20not%20the%20only%20way%20that%20words%20are%20sorted.%26nbsp%3B%20Many%20languages%20use%20different%20sorting%20rules.%26nbsp%3B%20The%20far-east%20languages%20are%20the%20most%20removed%20from%20English%2C%20but%20even%20western%20European%20languages%20use%20slightly%20different%20sorting%20rules.%26nbsp%3B%20Letters%20with%20diacritical%20marks%20may%20sort%20differently%3A%20'A'%20with%20an%20umlaut%20may%20come%20after%20'Z'%2C%20double%20'ss'%20may%20sort%20the%20same%20as%20a%20single%20's'%2C%20or%20'ch'%20is%20considered%20a%20different%20letter%20that%20comes%20in-between%20'c'%20and%20'd'.%26nbsp%3B%20%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3EWhen%20you%20have%20users%20who%20are%20geographically%20diverse%2C%20they%20may%20require%20that%20the%20OAB%20files%20they%20use%20be%20sorted%20differently.%26nbsp%3B%20Address%20Name%20Resolution%20may%20not%20be%20able%20to%20find%20entries%20and%20type-down%20in%20the%20Address%20Book%20pane%20may%20not%20work.%26nbsp%3B%20This%20is%20because%20the%20user's%20client%20is%20using%20one%20set%20of%20rules%20to%20search%20a%20list%20of%20words%20sorted%20using%20an%20entirely%20different%20set%20of%20rules.%26nbsp%3B%20The%20user%20could%20enter%20'A'%20with%20an%20umlaut%20and%20they%20may%20be%20taken%20to%20the%20end%20of%20the%20address%20book%20when%20the%20entries%20they%20wanted%20are%20at%20the%20beginning.%26nbsp%3B%20Or%20when%20entering%20a%20display%20name%20in%20Outlook%20and%20trying%20to%20resolve%20the%20name%20comes%20up%20with%20no%20matches%20found%20because%20the%20OAB%20was%20sorted%20with%20a%20different%20sort%20order.%26nbsp%3B%20To%20improve%20this%20situation%2C%20in%20Exchange%20Server%202003%20the%20OAB%20server%20stamps%20the%20OAB%20with%20the%20sort%20order%20that%20was%20used%20to%20create%20the%20files%20so%20the%20client%20knows%20what%20search%20rules%20to%20use%20when%20searching%20the%20OAB.%26nbsp%3B%20However%20this%20only%20works%20for%20Outlook%202003.%26nbsp%3B%20Older%20clients%20may%20still%20use%20different%20search%20rules.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3ETo%20completely%20solve%20this%20issue%20you%20have%20one%20option%3A%20install%20a%20different%20Exchange%20OAB%20server%20with%20its%20own%20OAB%20for%20each%20client%20locale%20you%20want%20to%20support.%26nbsp%3B%20Each%20server%20would%20have%20the%20system%20locale%20set%20to%20the%20locale%20of%20the%20client%20language%20you%20want%20to%20support.%26nbsp%3B%20Once%20you've%20done%20this%20you%20now%20need%20to%20change%20the%20OAB%20settings%20for%20each%20user%20who%20requires%20a%20different%20sort%20locale.%26nbsp%3B%20If%20you%20can%20move%20all%20your%20users%20who%20require%20a%20specific%20language%20to%20one%20Mailbox%20Store%2C%20you%20can%20change%20the%20default%20OAB%20setting%20for%20the%20Mailbox%20Store%20to%20the%20OAB%20that%20is%20sorted%20in%20the%20correct%20locale.%26nbsp%3B%20If%20you%20can't%20put%20all%20the%20users%20who%20require%20the%20same%20sort%20order%20on%20the%20same%20Mailbox%20Store%2C%20you%20can%20set%20the%20user's%20OAB%20on%20the%20user%20object%20itself.%26nbsp%3B%20See%20KB%20%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fsupport.microsoft.com%2Fdefault.aspx%3Fscid%3Dkb%3Ben-us%3B275203%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3Ehttp%3A%2F%2Fsupport.microsoft.com%2Fdefault.aspx%3Fscid%3Dkb%3Ben-us%3B275203%3C%2FFONT%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3ESince%20the%20OAB%20is%20now%20used%20by%20a%20larger%20part%20of%20the%20customer%20base%2C%20Microsoft%20is%20putting%20more%20resources%20on%20documenting%20the%20OAB.%26nbsp%3B%20Microsoft%20has%20a%20good%20whitepaper%20on%20Offline%20Address%20Book%20best%20practices%20which%20covers%20OAB%20issues%20including%20sort%20orders.%26nbsp%3B%20It%20can%20be%20found%20here%3A%26nbsp%3B%20%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fwww.microsoft.com%2Ftechnet%2Fprodtechnol%2FExchange%2Fguides%2FOffLineAddressGuide%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3Ehttp%3A%2F%2Fwww.microsoft.com%2Ftechnet%2Fprodtechnol%2FExchange%2Fguides%2FOffLineAddressGuide%3C%2FFONT%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3E-%20%3C%2FFONT%3E%3CA%20href%3D%22http%3A%2F%2Fblogs.msdn.com%2Fexchange%2Farticles%2F218922.aspx%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3ENeil%20Shipp%3C%2FFONT%3E%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E

In Exchange 2000 and earlier, 10% of Exchange users used the Offline Address Book was the statistic that was most often repeated to me.  But with Exchange 2003 and Office 2003, that number has gone way up due to Outlook's usage of Cached Mode Exchange.  This means that everyone that uses Outlook in cached mode now downloads the Offline Address Book or OAB, and they may get a slightly different experience than they were used to.

Before Cached Mode Exchange, clients would get their address books directly from the Active Directory.  As long as the global catalogs they were using had the client language installed (see KB http://support.microsoft.com/default.aspx?scid=kb;en-us;301314), the Active Directory would sort the GAL for browsing using the correct sorting locale and return it to the client rendered in the right code page.  When the client actively searched for entries, again, the AD would use the sort locale of the client to compute the result.  When the OAB server generates the OAB files, it reads the entries from the AD sorted in the default sort order of the OAB server and builds the OAB search files using that same sort order.  Now in cached mode, since the OAB is sorted according to OAB server and not the client, it may not match the clients language locale.  This means that users may not be able to find entries in the GAL as easily because they're not sorted in the way the user expects. 

By default, Exchange Server creates a single default OAB with the Global Address List on the first server installed in the organization.  This works well if your users all have the same language set as default on their client computers.  But for those organizations who must support different client languages it now gets complex.  The OAB generation process in Exchange Server 2003 can build two different versions of the OAB: a Unicode version and an ANSI version.  The Unicode version reads the Active Directory recipients in Unicode and keeps the data as Unicode when stored on the client.  It's up to the client to render the characters in the right code page.  However for the ANSI files, the OAB server renders the Unicode AD characters using the default code page of the server.  So if your OAB server is running on a US English Windows server and you have some Active Directory recipients with non-western characters in their properties, you're going to get question marks for those characters in the OAB data for the ANSI version of the OAB.

For the display names that can't be rendered in ANSI there is a work around.  If the AD or the OAB finds that characters in the displayname can't be rendered correctly in the current code page, they will then substitute the "simple display name" attribute for the display name.  If you have filled out this attribute then that text will show up instead of the original display name in the address book and on the property pages.  If it hasn't been set, the alias name will be used.  However, the records will not be resorted.  The simple display name will show up where the display name would have sorted to.  Since the display display name or alias may not have any relation to the display name, then the address book may not appear to be in the correct order for those entries.

This leads us into sort order problems.  Alphabetical English is not the only way that words are sorted.  Many languages use different sorting rules.  The far-east languages are the most removed from English, but even western European languages use slightly different sorting rules.  Letters with diacritical marks may sort differently: 'A' with an umlaut may come after 'Z', double 'ss' may sort the same as a single 's', or 'ch' is considered a different letter that comes in-between 'c' and 'd'. 

When you have users who are geographically diverse, they may require that the OAB files they use be sorted differently.  Address Name Resolution may not be able to find entries and type-down in the Address Book pane may not work.  This is because the user's client is using one set of rules to search a list of words sorted using an entirely different set of rules.  The user could enter 'A' with an umlaut and they may be taken to the end of the address book when the entries they wanted are at the beginning.  Or when entering a display name in Outlook and trying to resolve the name comes up with no matches found because the OAB was sorted with a different sort order.  To improve this situation, in Exchange Server 2003 the OAB server stamps the OAB with the sort order that was used to create the files so the client knows what search rules to use when searching the OAB.  However this only works for Outlook 2003.  Older clients may still use different search rules.

To completely solve this issue you have one option: install a different Exchange OAB server with its own OAB for each client locale you want to support.  Each server would have the system locale set to the locale of the client language you want to support.  Once you've done this you now need to change the OAB settings for each user who requires a different sort locale.  If you can move all your users who require a specific language to one Mailbox Store, you can change the default OAB setting for the Mailbox Store to the OAB that is sorted in the correct locale.  If you can't put all the users who require the same sort order on the same Mailbox Store, you can set the user's OAB on the user object itself.  See KB http://support.microsoft.com/default.aspx?scid=kb;en-us;275203

Since the OAB is now used by a larger part of the customer base, Microsoft is putting more resources on documenting the OAB.  Microsoft has a good whitepaper on Offline Address Book best practices which covers OAB issues including sort orders.  It can be found here:  http://www.microsoft.com/technet/prodtechnol/Exchange/guides/OffLineAddressGuide

- Neil Shipp

1 Comment
Not applicable
Why is address book resolution different in the OAB than online to a GC? The numbered of indexed attributes is different between OAB and GC address book resolution, why is this?