Using MSMQ on Windows (and Navision)

Tim Golden tim.golden at viacom-outdoor.co.uk
Mon Jun 27 10:39:15 CEST 2005


[Andrew Gordon]
| 
| I'm investigating getting Microsoft Navision to do stuff from 
| a Python  script.  

[... snip ...]

No help here, I'm afraid.

| 2) Every character in the body of messages sent from send.py has a 0 
| value character after them (ie in hex 48 00 65 00 6C 00 6C 00 
| 6F 00 20 
| 00 57 00 00 6F 00 72 00 6C 00 64 00 21 00)

That looks to me like Hello World! in utf16. Quick test:

<code>
#
# Removed what looks like a spurious double zero after the 57
#
original = "48 00 65 00 6C 00 6C 00 6F 00 20 00 57 00 6F 00 72 00 6C 00 64 00 21 00"
as_numbers = [int (i, 16) for i in original.split ()]
as_string = "".join ([chr (i) for i in as_numbers])
as_unicode = as_string.decode ("utf_16") # guess
print as_unicode

#
# Sure enough, Hello World!
#

</code>

Not adding much, I know, but at least confirming your suspicions.

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list