On Apr 30, 2006, at 6:28 PM, [EMAIL PROTECTED] wrote:
I am trying to get the name of the user that is logged in in Windows
using the method available in the Windows Functionality Suite, but the
result is not behaving as I expect. It looks like there's a character
between every character that I expect, and it is causing major
problems with displaying - for example, in a message box, only the
text before the unexpected character is displayed. Could this be an
encoding problem? How do I fix this?
Yes. It sounds like the data is being returned as UTF-16, but the
encoding is set incorrectly.
Try this:
dim s as String = DefineEncoding( whateverTheFunctionCallIs(),
Encodings.UTF16 )
Of course, if this is the problem, be sure to email
<[EMAIL PROTECTED]> which function(s) isn't/aren't behaving
correctly.
HTH,
Jon
--
Jonathan Johnson
REAL Software, Inc.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>