中文不显示

lorinzhang 2010-04-26 04:50:31
是这样的:

有一个flash整站,里面的文字是英文的从xml里面读出来的,比如下面的:关于我们文件about.xml
<?xml version="1.0" encoding="utf-8"?>
<main>
<picture>images/about.jpg</picture>
<text><![CDATA[<b><font color="#FFFFFF">About us</font></b>
nohighercalling Studio is our faith based design studio, specializing in Christian Images, Video Intros, Christian Music Videos, Motion Backgrounds, Church and Business promos.
The name came about several years ago when I was a newbie in the Christian world, confused about many things and searching for answers about God.
What could I do for Him? Why would He even want to use me? What possible gifts did I have that could be of any help to Him?
As the years have passed, my journey is starting to unfold. God has shown me, we all have gifts that He gave us. The discovering of these gifts came for me when I stopped putting myself first and simply asked "How can I help you?"
Do I get impatient at times and think I'm a better driver than He is? Absolutely! Do I ask for guidance? Always!
I do know one thing, planting spiritual seeds and passing on some of that inner peace....Well, lets just say there is no greater honor and No Higher Calling!

]]></text></main>
现在我想把<text></text>中间的内容改成中文就不显示了,为什么?求助!
...全文
94 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
lorinzhang 2010-04-27
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 xray2005 的回复:]
<text><![CDATA[不显示吗? 记住,应该是在CDATA这个里面修改,而不是把<text></text>里面的内容都修改了。 请明白![CDATA[]的意思
]]></text>
[/Quote]
我是这样做的,还是不行,encoding="gb2312",也不行的呀!!
xray2005 2010-04-26
  • 打赏
  • 举报
回复
<text><![CDATA[不显示吗? 记住,应该是在CDATA这个里面修改,而不是把<text></text>里面的内容都修改了。 请明白![CDATA[]的意思
]]></text>
wuyq11 2010-04-26
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="gb2312"?>

<![CDATA[测试]]>
qq546937127 2010-04-26
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="gbk"?>
liuyileneal 2010-04-26
  • 打赏
  • 举报
回复
修改编码格式,改为gb2312
liuyileneal 2010-04-26
  • 打赏
  • 举报
回复

<?xml version="1.0" encoding="utf-8" ?>
- <main>
<picture>images/about.jpg</picture>
- <text>
- <![CDATA[
<b><font color="#FFFFFF">About us</font></b>
汉字怎么可能不显示呢?



]]>
</text>
</main>

从vs中直接browse可以显示
但是保存成txt直接更改扩展名后浏览,不行。。
liss_2009 2010-04-26
  • 打赏
  • 举报
回复
以前也遇到过,不过忘了怎么解决的了,楼主不妨把utf-8改成GB2312试一下,如果没帮上楼主忙,那就帮顶吧!
lorinzhang 2010-04-26
  • 打赏
  • 举报
回复
再等等
lorinzhang 2010-04-26
  • 打赏
  • 举报
回复
有人帮忙吗?

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧