Comment #9 on issue 8912 by SergeiKuzmin: Url encoding problem (utf-8 used  
instead on win-1251)
http://code.google.com/p/chromium/issues/detail?id=8912

I've made a simple Python webserver and reduced test case.

a.html
---------
<html>
<head>
<meta charset="windows-1251">
</head>
<body>
<input type="button"
onclick="document.location.href='http://localhost:8000/a.html?findtext=палатка'"
value="Button1>
<input type="button" onclick="document.location.href='?findtext=палатка'"
value="Button2">
</body>
</html>
-----------------

This is requests logged by webserver:
Button1 click:
/a.html?findtext=%EF%E0%EB%E0%F2%EA%E0

Button2 click:
/a.html?findtext=%D0%BF%D0%B0%D0%BB%D0%B0%D1%82%D0%BA%D0%B0

Just in case you need simple web server :)
webserver.py:

import string,cgi,time
from os import curdir, sep
from http.server import BaseHTTPRequestHandler, HTTPServer

class MyHandler(BaseHTTPRequestHandler):

     def do_GET(self):
         try:
             print (self.path)
             if self.path.endswith(".html"):
                 f = open(curdir + sep + self.path, 'rb')
                 self.send_response(200)
                 self.send_header('Content-type',       'text/html')
                 self.end_headers()
                 self.wfile.write(f.read())
                 f.close()
                 return
             return

         except IOError:
             self.send_error(404,'File Not Found: %s' % self.path)

def main():
     try:
         server = HTTPServer(('', 8000), MyHandler)
         print('started httpserver...')
         server.serve_forever()
     except KeyboardInterrupt:
         print('^C received, shutting down server')
         server.socket.close()

if __name__ == '__main__':
     main()


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to