首页 > 学院 > 编程设计 > 正文

如何正确显示数据库里同时存在的GB码和BIG5码?

2020-06-19 13:51:56
字体:
来源:转载
供稿:网友

Public Function CheckBIG(strSource As String) As Boolean
Dim idx As Long
Dim ByteTemp() As Byte
CheckBIG = False
For idx = 1 To Len(strSource)
    ByteTemp = StrConv(Mid(strSource, idx, 1), vbFromUnicode)
    If UBound(ByteTemp) > 0 Then
        If (ByteTemp(1) >= 64) And (ByteTemp(1) <= 126) Then
            CheckBIG = True
            Exit For
        End If
    End If
Next idx
End Function

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表