这是一个字体名称:"中arial"
我正在使用StreamReader来读取我的文件:
Dim objReader As New System.IO.StreamReader(parm_strFileName)
Do While objReader.Peek() <> -1
Dim strFontName = objReader.ReadLine()
Loop
价值回报为<4E2D>arial
如何将<4E2D>arial
转换为"中arial"
?
更多:
如果我的文字= "トの通りに置換test"
它将编码是
"<stFnt:fontFamily><30C8><306E><901A><308A><306B><7F6E><63DB>test</stFnt:fontFamily>"
答案 0 :(得分:0)
您可以使用System.IO.StreamReader构造函数的以下重载。假设内容为UTF-8,您可以执行以下操作:
Dim objReader As New System.IO.StreamReader(parm_strFileName, System.Text.Encoding.UTF8)
请参阅 https://msdn.microsoft.com/en-us/library/x8xxf0x5%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
答案 1 :(得分:0)
这是我的解决方案:
<?php
error_reporting(E_ALL);
include ('includes/database.php');
if(isset($_POST['cmptbtn']))
{
$cmpltxt = $_POST['cmpltxt'];
$checkbox = $_POST['cmplt'];
// $chkb ="";
$sqlchkb = $conn->query("INSERT INTO complaint (complaint_type, complaint_comm) VALUES ('$checkbox', '$cmpltxt')");
// $sql = $conn->query("INSERT INTO complaint (complaint_comm) VALUES ('$cmpltxt')");
}
if ($sqlchkb === true){
echo '<script type="text/javascript">
document.querySelector(".btnsnd").onclick = function(){
swal("Good job!", "You clicked the button!", "success");
};
</script>';
}else{ echo "sorry try again"; }
$conn->close();
?>