මෙන්න අර නිළියගෙ දුවගෙ කියලා වටේ යන එක. කාටවත් PM කරන්න දෙයක් නෑ, ගියා බැලුවා. 😏

IndrajithGamage

Well-known member
  • Oct 6, 2022
    14,078
    2
    15,841
    113
    මාව ban කරොත් කියල hex විදිහට දානවා. උවමනා උන් string කරගෙන බලපියව්.

    68747470733a2f2f742e6d652f67616c616d6461782f363034

    Hex —> String කරන Python sample එකක්.

    Python:
    hex_string = input("Enter a hex string: ")
    try:
        byte_data = bytes.fromhex(hex_string)
        result_string = byte_data.decode('utf-8')
        print("Converted string:", result_string)
    except ValueError:
        print("Invalid hex string.")
     
    Last edited:
    • Like
    Reactions: dinesh89

    Antare 4.1

    Well-known member
  • Aug 9, 2023
    1,227
    395
    83
    Panadura
    උබලට නිළිය කව්ද කියන්න දන්නේ නැ , මගෙන් ද අහන්නේ මොලේ ගැන ? :lol: :rofl:
    නිලිය දන්නේ නෑ ඕයි.කෙල්ල ලංකාවේ.instagram ඉන්නවා.
     

    Roxburyroy

    Well-known member
  • Jul 24, 2023
    3,556
    3,958
    113
    මාව ban කරොත් කියල hex විදිහට දානවා. උවමනා උන් string කරගෙන බලපියව්.

    68747470733a2f2f742e6d652f67616c616d6461782f363034

    Hex —> String කරන Python sample එකක්.

    Python:
    hex_string = input("Enter a hex string: ")
    try:
        byte_data = bytes.fromhex(hex_string)
        result_string = byte_data.decode('utf-8')
        print("Converted string:", result_string)
    except ValueError:
        print("Invalid hex string.")
    මේ අර තුනී ලෑල්ලක් උඩින් මුද්දරස්පලම් ඈට දෙකක් තිබ්බ වගේ එක ද බං
     

    Keshan94

    Well-known member
  • Nov 6, 2022
    1,997
    3,152
    113

    Error! String conversion failed තේරෙන්නේ නැහැ බන් රෙද්දේ කෝඩ් එක ගන්න​


    hex_string = input("68747470733a2f2f742e6d652f67616c616d6461782f363034")
    try:
    byte_data = bytes.fromhex(hex_string)
    result_string = byte_data.decode('utf-8')
    print("Converted string:", result_string)
    except ValueError:
    print("Invalid hex string.")

    මේ හරිද
     

    IndrajithGamage

    Well-known member
  • Oct 6, 2022
    14,078
    2
    15,841
    113
    අපරාදෙ මහන්සිය
    අ‍ැයි

    Error! String conversion failed තේරෙන්නේ නැහැ බන් රෙද්දේ කෝඩ් එක ගන්න​


    hex_string = input("68747470733a2f2f742e6d652f67616c616d6461782f363034")
    try:
    byte_data = bytes.fromhex(hex_string)
    result_string = byte_data.decode('utf-8')
    print("Converted string:", result_string)
    except ValueError:
    print("Invalid hex string.")

    මේ හරිද


    මේක දැම්මත් අ‍ැති බං.

    print(bytes.fromhex("68747470733a2f2f742e6d652f67616c616d6461782f363034"))
    ------ Post added on Aug 13, 2023 at 1:13 PM

    මේක හරියට හරි. 😍

    @Keshan94 space නැතිව හරියට copy paste කරපිය


    ------ Post added on Aug 13, 2023 at 1:17 PM
     
    • Like
    Reactions: Keshan94

    Keshan94

    Well-known member
  • Nov 6, 2022
    1,997
    3,152
    113
    අ‍ැයි




    මේක දැම්මත් අ‍ැති බං.

    print(bytes.fromhex("68747470733a2f2f742e6d652f67616c616d6461782f363034"))
    ------ Post added on Aug 13, 2023 at 1:13 PM


    මේක හරියට හරි. 😍

    @Keshan94 space නැතිව හරියට copy paste කරපිය


    ------ Post added on Aug 13, 2023 at 1:17 PM
    ආහ වැඩේ ගොඩ තැන්ක්ස් බන්,, 🤗
     
    • Like
    Reactions: IndrajithGamage