I'm trying to figure out a way to automatically search and replace all special/accented letters/characters (such as
Ô) with the equivalent regular letters/characters (
O) in Notepad++.
Tried using ToolFx but it didn't work.
migrated from stackoverflow.com Oct 6 '12 at 3:52
This question came from our site for professional and enthusiast programmers.
Don't be restricted by what you see as being available. We have python available from within N++, and that means a quick SO search
We can test easily enough in N++ to see how it works::
From looking around a bit it seems there are lots of ways to accomplish removing accents, the question is which works best for you. And now that you can see how easy it is to 'try' these solutions on your text, go forth and give it a shot. Once you like a particular method add it (using the plugin menu) as a script and it will be there whenever you need it.
BTW - if you don't have Python Script installed you can install it using the Plugins -> Plugin Manager.
The suggestion above is excellent, but in this very moment it would not work because of an issue between Notepad++ and "Notepad++ Python Script". Since some months Notepad++ plug in manager downloads an old Python Script version that won't work with the editor. To fix that:
The various version numbers are current as of today, of course they shall change as time goes on. If the bottom pane shows an exception stating an exception occurred or (and) it stays blank, then you have installed a wrong Python plug in version.
Now, let's apply the script in the correct way:
If you want to be sure Python "really got the text in": after you typed