contau Posted May 20, 2011 Posted May 20, 2011 How to convert a ASCII code to string? example 0x3C3F7068700A2462313D245F504F53545B27746
wakillon Posted May 20, 2011 Posted May 20, 2011 (edited) How to convert a ASCII code to string? example 0x3C3F7068700A2462313D245F504F53545B27746Chr ( ASCIIcode ) Returns a character corresponding to an ASCII code.but your example seems to be Hex... Edited May 20, 2011 by wakillon AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0 - WIN 11 24H2 X64 - Other Examples Scripts
contau Posted May 20, 2011 Author Posted May 20, 2011 I want to open a file from ftp server using by notepad but the received data in ASCII type (or Hex), pls show me how to convert the data
UEZ Posted May 20, 2011 Posted May 20, 2011 (edited) Try: #include <string.au3> ConsoleWrite(_HexToString("3C3F7068700A2462313D245F504F53545B277460") & @CRLF) ConsoleWrite(BinaryToString("0x3C3F7068700A2462313D245F504F53545B277460") & @CRLF) In your example one character is missing! I added a '0' to the hex string! Br, UEZ Edited May 20, 2011 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
wakillon Posted May 20, 2011 Posted May 20, 2011 See _HexToString function in the help file AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0 - WIN 11 24H2 X64 - Other Examples Scripts
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now