I have an html form :
<p> Select beer characteristics </p>
<p>
Color:
<select name="color" size="1">
<option value="light"> light </option>
<option value="amber"> amber </option>
<option value="brown"> brown </option>
<option value="dark"> dark </option>
</select>
<br><br>
</p>
<input type = "submit" value="submit">
- for the input parameter name = "color", there are four options: light, amber, brown, dark
- based on which value is chosen, a result page is shown
- however, when I select an option, there are some junk characters being added in front and at the end of the string for the option value
- on debugging, this is the value read (on selecting "amber") when I read using request.getParameter("color") look like: â€amberâ€
- this is causing a problem in the back end where i want to do a string match with the input parameter
Any suggestions?