我想转一个带卷发的url,但是重音的字符是乱码的。我得到的是:
Bulletin cÙtier pour la bande des 20 milles de Port Camargue ‡ Saint<br>
Raphael le mardi 27 septembre 2011 ‡ 11:30 lÈgales.<br>它应该是这样的
Bulletin côtier pour la bande des 20 milles de Port Camargue à Saint
Raphael le mardi 27 septembre 2011 à 11:30 légales.我还注意到,html文件在标题中不包含任何字符集指示:
<html>
<head>
<title>METEO-FRANCE</title>
<META http-equiv="pragma" content="no-cache">
<META http-equiv="expires" content="Thu, 12 Jul 2001 10:09:34 GMT">
</head>我能怎么做才能收回正确的字符文本?
发布于 2011-09-27 11:22:08
Curl只是下载您所请求的数据序列。是你的终端不处理编码。使用处理原始字符编码或编码/解码的编辑器或文本查看器,以使其适应您的需要。
https://serverfault.com/questions/315879
复制相似问题