Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
RSS: Replace Pioneer Examples
456.Advanced search and replace -- How to decode all utf-8 encoded url address into readable text?
User:
editor -- 2010-03-22
<< 455
457 >>
Hits:
908
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
How to decode all utf-8 encoded url address into ansi text?
I have a webpage log file, which has recorded many url addresses, but some addresses are utf-8 encoded like %01%02%03%0a%0b%0c, how can I convert all of them to readable text automatically?
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open the log file with url encoded with utf-8
2. ctrl-h open replace window
* in search for pattern, enter:
%(..)%(..)%(..)
* in replace with pattern, enter:
decode('UTF-8',num2byte(oct('0x'.$1.$2.$3)))
3. click 'Replace', done!
4. ctrl-s save to file.
Download Script:
scripts/456.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to extract all html address from a text file?
(56%)
Can I download by all url addresses which are listed in a text file?
(55%)
How to extract all IP address from a text file?
(53%)
How to remove all the unavailable addresses from a list of web pages?
(52%)
How to enclose all the odd number of lines with a pair of tags?
(52%)
How to replace all duplicate lines with some text?
(51%)
How to sort all lines of ip addresses in a text file?
(51%)
How to change all the webpage address into links inside a html file?
(51%)
Check Demo of
Advanced search and replace
Keywords:
ansi
url addresses
utf8
decode
123
encode
utf
oct
url
record
decode into text
utf8 replace enter
utf8 how to replace enter
replace text in file utf8
utf8 search
replace url
how to replace text in a webpage
search and replace convert