佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 893|回复: 5

特殊字符的问题

[复制链接]
发表于 10-6-2008 05:23 PM | 显示全部楼层 |阅读模式
为什么我不能在网页里显示ḳ (latin small character k with dot below)这个字符?
但ĕ,î 就可以。
这些data是从mysql database retrieve出来的。
我用的是asp.

[ 本帖最后由 tank82 于 10-6-2008 05:24 PM 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

发表于 10-6-2008 06:30 PM | 显示全部楼层
已经htmlencode 了?
回复

使用道具 举报

 楼主| 发表于 11-6-2008 10:46 AM | 显示全部楼层
是的。

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
回复

使用道具 举报

 楼主| 发表于 30-7-2008 03:33 PM | 显示全部楼层
没有人知道吗?
如果特殊字符在last character,不能display properly。
如果特殊字符in-between character,能display properly。
baba&#7731; --> baba&#65533;&#65533;? (incorrect)
b&#277;r-b --> b&#277;r-b (correct)
为什么会这样?
有人能够尝试看看吗?
回复

使用道具 举报

发表于 30-7-2008 11:32 PM | 显示全部楼层
我说的是asp syntax htmlencode
你给的是 html meta tag
回复

使用道具 举报

 楼主| 发表于 13-8-2008 09:43 PM | 显示全部楼层
The HTMLEncode method applies HTML encoding to a specified string.

Syntax
Server.HTMLEncode(string)  

Parameter Description
string  Required. The string to encode

Example
The following script:

<%
response.write(Server.HTMLEncode("The image tag: <img>"))
%> Output:

The image tag: <img>Web browser output:

The image tag: <img>

http://www.w3schools.com/ASP/met_htmlencode.asp



[ 本帖最后由 tank82 于 13-8-2008 09:46 PM 编辑 ]
回复

使用道具 举报

Follow Us
您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 23-12-2025 06:28 PM , Processed in 0.102949 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表