Re: [python-win32] proper coding declaration

2019-03-04 Thread raf
r, encoded in UTF-8 is 0xE2 0x94 0x81. Try changing the charset declaration to match the actual unicode encoding that it is using. Not sure what it is but possibly UTF-16. cheers, raf ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-10 Thread raf
Roger Upole wrote: > raf wrote: > > Roger Upole wrote: > >> > >> win32security.LookupAccountName will give you the complete sid for a > >> username. > > > > if you look at the code i supplied, you'll see that that is

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-07 Thread raf
Roger Upole wrote: > raf wrote: > > > so my questions are: > > did the sid for the account name ever uniquely identify the user? > > Yes. In fact it's the only way, since you can change the login name of an > account. > > > how do i obtain the &q

[python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkey query

2012-09-05 Thread raf
t want or need to log the user in (even if i knew their passwords!) so i have no such token and i can't use that function. cheers, raf #!/usr/bin/env python '''This module provides functions for obtaining the current user's name and any user's home directory. They don&

Re: [python-win32] time/datetime module wierdness on some windows7/XP PCs [SOLVED]

2012-07-29 Thread raf
ys, os if sys.platform == 'win32': _tz = os.getenv('TZ') if _tz is not None and '/' in _tz: os.unsetenv('TZ') removing the TZ environment variable entirely wasn't an option as it is needed by cygwin programs such as ls. c

Re: [python-win32] time/datetime module wierdness on some windows7/XP PCs

2012-07-26 Thread raf
Vernon Cole wrote: > Dear raf: > Yes, time zones in the python time module are known to be somewhat messed > up. Mark Hammond and I went several rounds while trying to create a test > for the "python time" capabilities in adodbapi. When a test worked for me > in Nor

[python-win32] time/datetime module wierdness on some windows7/XP PCs

2012-07-24 Thread raf
doesn't have the RealTimeIsUniversal=1 registry entry so it knows that the hardware clock is in the local timezone. so there's no confusion there. any help would be appreciated. cheers, raf #!/usr/bin/env python import time print('time.timezone = %r (should be -36000)' % time.ti