MSFN Forum: The DrivercabHelper Unicode Bug Thread - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

The DrivercabHelper Unicode Bug Thread New thread to discuss the bug apart from the main DrivercabHelper thre Rate Topic: -----

#1 User is offline   daddydave 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 08-December 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 February 2007 - 03:36 PM

Seems I was overthinking it; I don't think I really need to read it and write it as Unicode, I just need to read it and write it as bytes. Something like (just to prove the concept):
 
$writeTo = FileOpen(".\binary-write.txt", 2);
If $writeTo = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

$bin = BinaryString(30);
$bin = Chr(0xff) & Chr(0xfe) & Chr(0xac) & Chr(0x20) & Chr(0x20) & Chr(0) & chr(0x60) & Chr(0x01) & Chr(0x20) & Chr(0x00) & Chr(0x18) & Chr(0x20) & Chr(0x20) & Chr(0x00) & Chr(0x19) & Chr(0x20) & Chr(0x20) & Chr(0x00) & Chr(0xa1) & Chr(0x00) & Chr(0x20) & Chr(0x00) & Chr(0xa2) & Chr(0x00) & Chr(0x20) & Chr(0x00) & Chr(0xa3)
FileWrite($writeTo, $bin)
FileClose($writeTo)
 



Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy