Jump to content
Sign in to follow this  
contau

convert ACSII to string

Recommended Posts

contau

How to convert a ASCII code to string? example 0x3C3F7068700A2462313D245F504F53545B27746

Share this post


Link to post
Share on other sites
wakillon

How to convert a ASCII code to string? example 0x3C3F7068700A2462313D245F504F53545B27746

Chr ( ASCIIcode ) Returns a character corresponding to an ASCII code.

but your example seems to be Hex...

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
contau

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

Share this post


Link to post
Share on other sites
UEZ

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 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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
wakillon

See _HexToString function in the help file


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.