Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1029

Html form set content type in requset header for charset utf-8

$
0
0

May be a basic question but I am struggling with it.Following it the HTML form on submitting the Content-Type:application/x-www-form-urlencoded without charset:utf-8.enter image description here

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>HTML Form with UTF-8</title></head><body><form action="/reporting" method="post"><!-- Form fields go here --><label for="name">Name:</label><input type="text" id="name" name="name"><label for="email">Email:</label><input type="email" id="email" name="email"><input type="submit" value="Submit"></form></body></html>

The problem I am facing is the parameter are not interpreted correctly if it's Japanese characters. If I modify the request using developer's tool and run with modified header which is charset:utf-8 from power shell the result is correct.Please let me know if anyone have any idea.


Viewing all articles
Browse latest Browse all 1029

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>