This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>PHP filter</title> | |
<style type="text/css"> | |
form { | |
margin: 0; | |
padding: 0px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# -*- coding: UTF-8 -*- | |
import urllib | |
def main(): | |
ss = 'http://www.google.com.tw/?q=亞伯拉罕' | |
quoted_str = urllib.quote_plus(ss) | |
print quoted_str | |
print urllib.unquote_plus(quoted_str) |
NewerOlder