Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Foreign Language Unicode Double Byte
Created a chinese user id, but after I ran the function wntAcctList('',1,0) to get a list of users I get back the following:
??,??????
The English characters display just fine.
At this point, even though WinBatch now has native support for Unicode strings, the Win32 Network extender itself would require a fair amount of refactoring & testing to implement full Unicode support within it. There is no quick fix that will enable reliable Unicode support within the extender.
Currently, we recommend using the WMI and ADSI COM Automation interfaces for the account management operations. There are very few cases where the extender performs tasks that cannot be performed via WMI or ADSI.
For Example, here is some code to get a user list that contains mutlibyte characters using ADSI COM.
#DefineFunction udfListUsers( strDomain ) ; List all users and some of their properties in a Windows 2000 AD domain or ; Windows NT4 domain. If domain is a computer, all users of the local SAM ; database are displayed. objComputer = ObjectGet ("WinNT://" : strDomain ) objComputer.Filter = "User" list = '' ForEach objUser In objComputer list = list : @TAB : objUser.Name Next Return StrTrim(list) #EndFunction strDomain = AskLine( "List users", "Please enter a domain name", ComputerNameGet( 0 ) ) list = udfListUsers( strDomain )
Article ID: W17994
Filename: Foreign Language support of the Win32 Network Extender.txt
File Created: 2009:05:22:12:26:36
Last Updated: 2009:05:22:12:26:36