Trying to get Licence code

I tried to get a code to register my programme, but I was only sent 28 characters including the -. I then tried to obtain another, saying that I lost my last one, all got from avast was a message with “machine code” type writing,
~hr׭jkzڽ-ryǢ_jkZ}5)fj)gW(u}~[kZ}:)fj)gW(z[O4M6]wm4MDLM=m׽ߡu&Ӭ"xf{erjkZ}5)fj)gW(+)n

this I got twice, unable to get any further, can anyone help

Did you copy paste the code in avast and get an error message?
It should work.

No, I got the code using my Desktop, and entered it on my laptop, as I donot have access to my Email on my laptop, only my Desktop. I was requested for 29 bits to the code, and I was only given 28.

Go to the SSL page version and register from there: https://secure.avast.com/scripts/register.php?lang=ENG. The Registration key is valid for 14 months.
See the tutorial: http://www.avast.com/files/tutorials/insert_key.htm

You can copy the email contents, open a text file (Notepad) or doc (Word), paste, save to an USB drive.
Use it to copy & paste in the other computer.

Be sure to do not include the ‘last blank space’ in the paragraph while copying & pasting.