contau Posted May 20, 2011 Share Posted May 20, 2011 How to convert a ASCII code to string? example 0x3C3F7068700A2462313D245F504F53545B27746 Link to comment Share on other sites More sharing options...
wakillon Posted May 20, 2011 Share 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.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
contau Posted May 20, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
UEZ Posted May 20, 2011 Share 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
wakillon Posted May 20, 2011 Share Posted May 20, 2011 See _HexToString function in the help file AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
contau Posted May 20, 2011 Author Share Posted May 20, 2011 Thank all of you for enthusiasm. Link to comment Share on other sites More sharing options...
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