Monday, 15 August 2011

regex - vim how to remove encoding special signs -


I have a document that contains encoding-related characters to get rid of i (like replace with "") .

I have a common problem in describing their origin. There are various examples (for example, vim ) which are displayed in different editors.

Osh

  • 9c & gt; WiÄ™cim ( & lt; 9c & gt; is a part that I would like to get rid of)

    • these Geany :

    Enter image details here

    (But copy the copy copy without this 'square' symbol)

    • In these LibreOffice Calc :

    Enter image details here please

    Please note that my text is whcih in other Polish-language-specific Symptoms appear correctly Areas are.

    Question: How to regex it in Vim?

You can & lt; 9c & gt; via : help Ctrl + V (In Windows, often Ctrl + Q by pressing Q X and hexadecimal number:

> Optionally, special \% x 9c < / Code> Regular Expression Atom matches that value:

 :% s / \% x9c // g  

Alternatively, when you Also the cursor is on it through yl , and then : s via the command line & lt; C-R & gt; ".


No comments:

Post a Comment