How to replace UTF-8 chars? #3644
-
Lately, I've been pasting copied text into micro and the double-quotes get pasted as UTF-8 characters (0xE2809C and 0xE2809D). I want to replace all of these with the regular double quote character (ASCII 0x22). Can this be done? Can I set it up as a keybinding? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
You can use the command
By the way, if you have difficulties typing a character, you can copy it inside a buffer and then paste it when you are in the command line. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that was my problem of not being able to know how to reference the character other than stating its hex code. That's great. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Can that |
Beta Was this translation helpful? Give feedback.
-
You can add the following to your
Even without the new command defined inside
|
Beta Was this translation helpful? Give feedback.
-
Great. Thanks again. |
Beta Was this translation helpful? Give feedback.
You can use the command
replaceall [“”] \"
. You can bind it to a key with a command likeBy the way, if you have difficulties typing a character, you can copy it inside a buffer and then paste it when you are in the command line.