Update Utility http-serve
start a SimpleHTTPServer with UTF-8 encoding http://stackoverflow.com/questions/15288891/how-can-i-serve-files-with-utf-8-encoding-using-python-simplehttpserver#24517632
This commit is contained in:
parent
08676a273e
commit
d8b7ff6a14
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ fi
|
|||
# Miscellaneous
|
||||
|
||||
# Serves a directory via HTTP.
|
||||
alias http-serve='python -m SimpleHTTPServer'
|
||||
alias http-serve="python -c \"import SimpleHTTPServer; m = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map; m[''] = 'text/plain'; m.update(dict([(k, v + ';charset=UTF-8') for k, v in m.items()])); SimpleHTTPServer.test();\""
|
||||
|
||||
#
|
||||
# Functions
|
||||
|
|
Loading…
Add table
Reference in a new issue