Using Notepad++ to remove accents

Today I share a tip to facilitate the replacement of accented characters using only Notepad++ and your HTML Tag Plugin.

Let’s do it!

First of all, we must have HTML Tag Plugin installed. If you already have it, jump to step 4.

Open Notepad++ and look for Plugins in Main Menu.

If HTML Tag is absent, open Plugin Manager->Show Plugin Manager and find HTML Tag Plugin on the list.

Select the desired Plugins and hit Install button. Notepadd++ will restart to complete the install.
Now we can translate special characters to yours HTML entities. We need to do it first to remove accents from our text.

Put your text on the window and make Select All with Ctrl + A or Edit -> Select All in Main Menu.

Open Plugins->HTML Tag->Encode Entities in Main Menu or CTRL + E.
Now, all special characters will be in html entities.

Open the Replace Form (CTRL + H or Search->Replace) and fill the Find What field with&([a-zA-Z])(:?grave|acute|circ|uml|aring|cedil|slash|tilde); and Replace with field with
$1
Select Regular Expression in Search Mode and hit Replace All button.The text will be replaced with no accents characters, but all other special chars will be in HTML entity.

Now we can return all other chars to your originals but is better to use your text in UTF-8 encoding. Go to Encoding Menu and change text encoding if is not Utf-8. You can return to another encoding after this step.
To decode HTML use CTRL + Shift + E or Plugins->HTML Tag->Decode Entities.

I Hope that help someone.

Compartilhe isso:

Relacionado

Compartilhe em suas mídias sociais

Marcos Regis

My name is Regis, Marcos Regis. You can call me Marcos. You can call me Marcos Regis. You can call me Marcos Regis. I'm professional t. I. graduated in data processing Technology for the Community College FATEC.
Atualmente trabalho como desenvolvedor Sênior em uma empresa de médio porte que atua no ramos de logística programando, gerenciando, modelando, organizing and a lot of another ings.

A little bit of your attention!

You are using an ad blocker! So far no more, I also use, but keep this site has cost and the ads are a resource fair. I assure you that the ads displayed will impede you not, portanto pode desativar seu bloqueador sem medo para esse domínio.