Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

456.Character encoding -- How to decode all utf-8 encoded url address into readable text?

User: engfish -- 2010-03-22          << 455  457 >>
Hits: 9911
Type: Character encoding   
Search all Character encoding 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?
Input Sample:
%5Bhttp%3A%2F%2Fwww%2Emind%2Dpioneer%2Ecom%2F%5D%E6%80%8E%E6%A0%B7%E5%B0%86utf8%E7%BC%96%E7%A0%81%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%BD%AC%E6%8D%A2%E6%88%90%E5%8F%AF%E8%AF%BB%E6%96%87%E5%AD%97%EF%BC%8C%E8%BF%99%E9%87%8C%E6%9C%89%20%E7%A9%BA%E6%A0%BC%E3%80%82
Output Sample:
[http://www.mind-pioneer.com/]怎样将utf8编码的字符串转换成可读文字,这里有 空格。
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:

3. click 'Replace', done!
4. ctrl-s save to file.

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 Character encoding
Keywords:
ansi  url addresses  oct 0x  decode  ecode  utf 8  utf  encode  oct  character encoding  convert ansi encoding to utf  url encoding  utf 8 in address  url convert  how to convert many text file encoding window  utf to ansi convert  convert to utf to ansi  automatically text encoding