让我们一起爱米兰
站内搜搜:
移动设备
请扫描二维码
或访问
m.milan100.com
您所在的位置 -> 米兰百分百 -> ASP -> ASP将日文转换为编码的函数

ASP将日文转换为编码的函数

点击数:1046 发表时间:2010-07-23 17:24:54 作者: 来源链接:
分享到:
分享到微信

'------------------------------------------------
'EncodeJP(byval strContent)
'日文编码
'10k文章编码过程小于0.01秒,不会影响到执行效率
'目前需要更新的位置为:
'站点配置里的各个项目:名称、描述
'发布文章时的标题、内容、关键字
'发布留言/评论时的内容
'搜索时对关键字进行编码
'暂时不考虑注册名问题
'可与其他函数配合使用
'------------------------------------------------
Function EncodeJP(byval strContent)

 If strContent="" Then Exit Function
 
 'SQL版本不进行编码
 If IS_SQLDATA=1 Then
  EncodeJP=strContent
  Exit Function
 End If
 
 strContent=Replace(strContent,"ガ","ガ")
    strContent=Replace(strContent,"ギ","ギ")
    strContent=Replace(strContent,"グ","グ")
    strContent=Replace(strContent,"ア","ア")
    strContent=Replace(strContent,"ゲ","ゲ")
    strContent=Replace(strContent,"ゴ","ゴ")
    strContent=Replace(strContent,"ザ","ザ")
    strContent=Replace(strContent,"ジ","ジ")
    strContent=Replace(strContent,"ズ","ズ")
    strContent=Replace(strContent,"ゼ","ゼ")
    strContent=Replace(strContent,"ゾ","ゾ")
    strContent=Replace(strContent,"ダ","ダ")
    strContent=Replace(strContent,"ヂ","ヂ")
    strContent=Replace(strContent,"ヅ","ヅ")
    strContent=Replace(strContent,"デ","デ")
    strContent=Replace(strContent,"ド","ド")
    strContent=Replace(strContent,"バ","バ")
    strContent=Replace(strContent,"パ","パ")
    strContent=Replace(strContent,"ビ","ビ")
    strContent=Replace(strContent,"ピ","ピ")
    strContent=Replace(strContent,"ブ","ブ")
    strContent=Replace(strContent,"ブ","ブ")
    strContent=Replace(strContent,"プ","プ")
    strContent=Replace(strContent,"ベ","ベ")
    strContent=Replace(strContent,"ペ","ペ")
    strContent=Replace(strContent,"ボ","ボ")
    strContent=Replace(strContent,"ポ","ポ")
    strContent=Replace(strContent,"ヴ","ヴ")
    EncodeJP=strContent
End Function
0
很 好
0
一 般
0
差 劲
热门新闻
相关文章
上一篇: asp中利用xmlhttp实现远程管理数据库
下一篇: ASP+MsSqlServer 存储过程分页
评论区
匿名

返回首页 | 收藏本页 | 回到顶部
Copyright 2010. 米兰百分百 Powered By Bridge.
京ICP备15050557号