How convert text to hex value?How can I convert hexidecimal values to base 10 in hexl-mode?Convert a word into an acronymIs there a way to convert an array of bytes into a UTF-8 string?Swap text before and after “=” in properties fileEnter hex numbers continuously in hexl-modeMeaningful Copy/Paste in hexl-modeIs there a function in emacs that centers an input text and fills the line with the comment symbol as one would use it for headings in a file?Is it Possible to automate file editing using emacs?How remove whitespaces in the beginning of lines?How show (filter) only text lines with all uppercase chars?

Sci fi short story, robot city that nags people about health

Is my Rep in Stack-Exchange Form?

Hand soldering SMD 1206 components

Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?

Does Marvel have an equivalent of the Green Lantern?

What was the Shuttle Carrier Aircraft escape tunnel?

What does "play with your toy’s toys" mean?

Swapping rooks in a 4x4 board

Does this Wild Magic result affect the sorcerer or just other creatures?

How would modern naval warfare have to have developed differently for battleships to still be relevant in the 21st century?

Can Ogre clerics use Purify Food and Drink on humanoid characters?

Can the negators "jamais, rien, personne, plus, ni, aucun" be used in a single sentence?

Archery in modern conflicts

I am completely new to Tales from the Floating Vagabond, how do I get started?

Accidentals and ties

As a fresh graduate, should I get my first credit card?

How risky is real estate?

If you snatch, I trade

Hot coffee brewing solutions for deep woods camping

Suggested order for Amazon Prime Doctor Who series

How are the Zhentarim and Black Fist related?

Is this one of the engines from the 9/11 aircraft?

What is this tool/thing in an Aztec painting?

Folding basket - is there such a thing?



How convert text to hex value?


How can I convert hexidecimal values to base 10 in hexl-mode?Convert a word into an acronymIs there a way to convert an array of bytes into a UTF-8 string?Swap text before and after “=” in properties fileEnter hex numbers continuously in hexl-modeMeaningful Copy/Paste in hexl-modeIs there a function in emacs that centers an input text and fills the line with the comment symbol as one would use it for headings in a file?Is it Possible to automate file editing using emacs?How remove whitespaces in the beginning of lines?How show (filter) only text lines with all uppercase chars?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I has some sybmol, e.g. O and I want to convert it to hex value.
The result must be 4f



How I can do this in Emacs 26.1 ?










share|improve this question






























    2















    I has some sybmol, e.g. O and I want to convert it to hex value.
    The result must be 4f



    How I can do this in Emacs 26.1 ?










    share|improve this question


























      2












      2








      2








      I has some sybmol, e.g. O and I want to convert it to hex value.
      The result must be 4f



      How I can do this in Emacs 26.1 ?










      share|improve this question
















      I has some sybmol, e.g. O and I want to convert it to hex value.
      The result must be 4f



      How I can do this in Emacs 26.1 ?







      text hexl-mode






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 6 hours ago







      Alexei

















      asked 8 hours ago









      AlexeiAlexei

      8783 silver badges12 bronze badges




      8783 silver badges12 bronze badges




















          2 Answers
          2






          active

          oldest

          votes


















          4














          You can simply run M-x eval-expression and type ?O. You will get the following output in the minibuffer:



          79 (#o117, #x4f, ?O)





          share|improve this answer























          • C-x = (what-cursor-position) works as well, it prints something like "Char: O (79, #o117, #x4f) point=146 of 146 (99%) column=0".

            – xuchunyang
            22 mins ago


















          1














          Maybe no so elegant but should do the trick. Note I have assigned it to "C-." which might be used by other functions in your setup. Reassign as you wish:



          (defun hexify()
          (interactive)
          (setq hx (format "%x" (char-before)))
          (delete-backward-char 1)
          (insert hx))

          (global-set-key (kbd "C-.") 'hexify)


          Calling the function, replaces the character before the cursor with its hex.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "583"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f51149%2fhow-convert-text-to-hex-value%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            You can simply run M-x eval-expression and type ?O. You will get the following output in the minibuffer:



            79 (#o117, #x4f, ?O)





            share|improve this answer























            • C-x = (what-cursor-position) works as well, it prints something like "Char: O (79, #o117, #x4f) point=146 of 146 (99%) column=0".

              – xuchunyang
              22 mins ago















            4














            You can simply run M-x eval-expression and type ?O. You will get the following output in the minibuffer:



            79 (#o117, #x4f, ?O)





            share|improve this answer























            • C-x = (what-cursor-position) works as well, it prints something like "Char: O (79, #o117, #x4f) point=146 of 146 (99%) column=0".

              – xuchunyang
              22 mins ago













            4












            4








            4







            You can simply run M-x eval-expression and type ?O. You will get the following output in the minibuffer:



            79 (#o117, #x4f, ?O)





            share|improve this answer













            You can simply run M-x eval-expression and type ?O. You will get the following output in the minibuffer:



            79 (#o117, #x4f, ?O)






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 7 hours ago









            Arkadiusz DrabczykArkadiusz Drabczyk

            2261 silver badge6 bronze badges




            2261 silver badge6 bronze badges












            • C-x = (what-cursor-position) works as well, it prints something like "Char: O (79, #o117, #x4f) point=146 of 146 (99%) column=0".

              – xuchunyang
              22 mins ago

















            • C-x = (what-cursor-position) works as well, it prints something like "Char: O (79, #o117, #x4f) point=146 of 146 (99%) column=0".

              – xuchunyang
              22 mins ago
















            C-x = (what-cursor-position) works as well, it prints something like "Char: O (79, #o117, #x4f) point=146 of 146 (99%) column=0".

            – xuchunyang
            22 mins ago





            C-x = (what-cursor-position) works as well, it prints something like "Char: O (79, #o117, #x4f) point=146 of 146 (99%) column=0".

            – xuchunyang
            22 mins ago













            1














            Maybe no so elegant but should do the trick. Note I have assigned it to "C-." which might be used by other functions in your setup. Reassign as you wish:



            (defun hexify()
            (interactive)
            (setq hx (format "%x" (char-before)))
            (delete-backward-char 1)
            (insert hx))

            (global-set-key (kbd "C-.") 'hexify)


            Calling the function, replaces the character before the cursor with its hex.






            share|improve this answer



























              1














              Maybe no so elegant but should do the trick. Note I have assigned it to "C-." which might be used by other functions in your setup. Reassign as you wish:



              (defun hexify()
              (interactive)
              (setq hx (format "%x" (char-before)))
              (delete-backward-char 1)
              (insert hx))

              (global-set-key (kbd "C-.") 'hexify)


              Calling the function, replaces the character before the cursor with its hex.






              share|improve this answer

























                1












                1








                1







                Maybe no so elegant but should do the trick. Note I have assigned it to "C-." which might be used by other functions in your setup. Reassign as you wish:



                (defun hexify()
                (interactive)
                (setq hx (format "%x" (char-before)))
                (delete-backward-char 1)
                (insert hx))

                (global-set-key (kbd "C-.") 'hexify)


                Calling the function, replaces the character before the cursor with its hex.






                share|improve this answer













                Maybe no so elegant but should do the trick. Note I have assigned it to "C-." which might be used by other functions in your setup. Reassign as you wish:



                (defun hexify()
                (interactive)
                (setq hx (format "%x" (char-before)))
                (delete-backward-char 1)
                (insert hx))

                (global-set-key (kbd "C-.") 'hexify)


                Calling the function, replaces the character before the cursor with its hex.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 8 hours ago









                PouyaPouya

                1485 bronze badges




                1485 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Emacs Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f51149%2fhow-convert-text-to-hex-value%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480