Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

872.Character encoding -- How to search and replace strings in multiple utf-8 encoded text files?

User: editor -- 2011-10-13          << 871  873 >>
Hits: 4586
Type: Character encoding   
Search all Character encoding examples
Description:
How to search and replace strings in multiple utf-8 encoded text files? There are multiple utf8 encoded text files, how to batch search the string 'old' and replace with 'new' in these files all at once?
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
 
1. Select menu "settings->encoding->utf8" to set the file encoding type to utf8 
2. Open "Tools->Batch Runner" menu 
3. Drag all files from windows file browser to "Batch Runner" window. 
4. click "Fast Replace" button 
* click "add" to add a new rule: 
* set "search" to  
* set "replace" to  
* click ok 
5. click "start" and all "old" will be replaced with "new" in all utf-8 files. 
 
* Note1 : by select different encoding type in step 1, you can also replace files encoded with other types, such as unicode(UTF-16). 
 
* Note2 : if there are many files, and only a few contain the string, you can use following procedure in place of step 3: 
Click "Search Files" button: 
* enter correct filename filter such as *.txt 
* select "search directory" 
* check option of "Containing Word/Phrase", and enter the search content such as "old" 
* check option of "search subdirectory", if you need to search subdirectory/subfolder. 
* click "search" button, and click "close" upon finish

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to search and replace multiple terms with 1 common term in text file? (72%)
How to search and replace multiple file with multiple regex rules? (68%)
How can I search and replace multiple strings in multiple files all at once? (66%)
How to insert a text file into the beginning of multiple text files? (63%)
How to search and replace in multiple files base on user-defined mapping file? (63%)
How to search and capitalize title in multiple HTML files? (62%)
How to search specific strings and save each instance into a text file? (62%)
How to insert a keyword only at first line of multiple text files? (62%)

Check Demo of Character encoding
Keywords:
types  unicode  unicod  subfolder  utf8  subdirectory  file encoding type  phrase  utf  encode  search replace utf8 multiple strings  string batch replace utf8  batch file set encoding types  add directory to file content  replace content in multiple files in once  replace string in utf8 file batch  check text file encoding windows  set text file encoding types