LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   UTF-8 characters Read Covert Decode (https://www.linuxquestions.org/questions/programming-9/utf-8-characters-read-covert-decode-4175546698/)

Klaipedaville 06-29-2015 02:12 AM

UTF-8 characters Read Covert Decode
 
Hello there!

Would highly appreciate it if someone could advise on how to read the following:

Subject: =?UTF-8?B?UHVpa3VzIHBhc2nFq2x5bWFzIEp1bXMhISE=?=

The line above is clearly encoded with UTF-8. Are there any simple tables or something to decode it? For example UHV = p, pa3 = k, c2nF = z and so on. Then knowing the "code" it will be possible to apply it and read the line above. The line above is actual and it has a meaning / sentence inside.

Many thanks for any input / suggestions at all in advance!

P.S. I tried this one but it does not seem to match any characters in my line above http://www.utf8-chartable.de/unicode...codeinhtml=hex

veerain 06-29-2015 02:20 AM

Where did you got it? Perhaps part of it base64 encoded. There are many variants.

Klaipedaville 06-29-2015 02:39 AM

Quote:

Originally Posted by veerain (Post 5384346)
Where did you got it?

- It's the actual subject input as stated in my question.

Quote:

Perhaps part of it base64 encoded. There are many variants.
- I know there are variants, everybody knows that I guess. :D I was asking if there are any specific ideas how to decode this particular line?

NevemTeve 06-29-2015 03:04 AM

@OP: Are you using some programming language? If so, please name it.

firstfire 06-29-2015 03:31 AM

Hi.

Look here.

Letter B tells that it is a base-64 encoded string:
Code:

$ echo '=?UTF-8?B?UHVpa3VzIHBhc2nFq2x5bWFzIEp1bXMhISE=?=' | sed 's/.*B?//' | base64-decode
Puikus pasilymas Jums!!!


Klaipedaville 06-29-2015 04:05 AM

Quote:

Originally Posted by firstfire (Post 5384365)
Hi.

Look here.

Letter B tells that it is a base-64 encoded string:
Code:

$ echo '=?UTF-8?B?UHVpa3VzIHBhc2nFq2x5bWFzIEp1bXMhISE=?=' | sed 's/.*B?//' | base64-decode
Puikus pasilymas Jums!!!


Thank you so much, firstfire! Perfect! I think I'll manage it on my own now and build further on it. :-) Пламенный привет городу-герою Екатеринбургу!

Habitual 06-29-2015 07:30 PM

looks like a cool python exercise. ;)


All times are GMT -5. The time now is 02:56 PM.