奇怪的编码问题,从网页上阅读

时间:2015-07-27 21:27:29

标签: java html encoding character-encoding

我正在将网站读成字符串。虽然我正在使用<table cellpadding="2" cellspacing="2" class="table table-striped"> <tr> <td class="registration-form">Is the patient enrolled in a VDOT research protocol?*</td> <td> <span id="cphBody_surveyControll_surveyWizard_S0100100" class="radio inline control-group" MaintainScrollPositionOnPostback="true"> <input id="cphBody_surveyControll_surveyWizard_S0100100_0" type="radio" name="ctl00$cphBody$surveyControll$surveyWizard$S0100100" value="1" checked="checked" /> <label for="cphBody_surveyControll_surveyWizard_S0100100_0">Yes&nbsp</label> <input id="cphBody_surveyControll_surveyWizard_S0100100_1" type="radio" name="ctl00$cphBody$surveyControll$surveyWizard$S0100100" value="0" onclick="javascript:setTimeout(&#39;__doPostBack(\&#39;ctl00$cphBody$surveyControll$surveyWizard$S0100100$1\&#39;,\&#39;\&#39;)&#39;, 0)" /> <label for="cphBody_surveyControll_surveyWizard_S0100100_1">No</label></span> <span id="cphBody_surveyControll_surveyWizard_rfvS0100100" class="text-error" style="display:none;">required</span> </td> </tr> <tr id="cphBody_surveyControll_surveyWizard_ShowS0100200"> <td class="registration-form">Informed Consent signed?*</td> <td> <span id="cphBody_surveyControll_surveyWizard_S0100200" class="radio inline control-group"> <input id="cphBody_surveyControll_surveyWizard_S0100200_0" type="radio" name="ctl00$cphBody$surveyControll$surveyWizard$S0100200" value="1" checked="checked" /> <label for="cphBody_surveyControll_surveyWizard_S0100200_0">Yes &nbsp</label> <input id="cphBody_surveyControll_surveyWizard_S0100200_1" type="radio" name="ctl00$cphBody$surveyControll$surveyWizard$S0100200" value="0" /> <label for="cphBody_surveyControll_surveyWizard_S0100200_1">No</label></span> <span id="cphBody_surveyControll_surveyWizard_rfvS0100200" class="text-error" style="display:none;">required</span> </td> </tr> ,但德语特殊字符无法正确显示。这特别奇怪,因为一个ö显示正确,而其他人在他们面前有一个奇怪的特殊角色:

enter image description here

网站已定义UTF-8并在网络浏览器中显示,没有任何问题。

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

0 个答案:

没有答案