以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 SVG/GML/VRML/X3D/XAML 』 (http://bbs.xml.org.cn/list.asp?boardid=21) ---- 调用function时传递参数为中文,不行啊 (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=19109) |
-- 作者:wulemale -- 发布时间:6/1/2005 2:43:00 PM -- 调用function时传递参数为中文,不行啊 调用function showinfotip (evt, info)时传递的info是中文,结果显示为一个个方块,请高手指教。 |
-- 作者:keeponline -- 发布时间:6/1/2005 3:37:00 PM -- 变量是中文,不行的 目前XML的中文部分还是不好。 |
-- 作者:leezzcc -- 发布时间:6/1/2005 5:02:00 PM -- 保存为 unicode 试下 |
-- 作者:wulemale -- 发布时间:6/1/2005 5:48:00 PM --
早就存为unicode了,其他地方都没问题包括中文菜单等,就是function传递参数不可以。 |
-- 作者:leezzcc -- 发布时间:6/1/2005 11:59:00 PM -- <?xml version="1.0" encoding="UTF-16"?> <svg width="615" height="644.787" viewBox="0 0 615 644.787" xml:space="preserve" ========== <path id="sjl" fill="none" stroke="#656564" stroke-width="4" d="M284.667,329.895v24.667l-2.417,31.083l-7.917,25.25 L268,468.562"/> <text font-family="宋体" font-size="20" fill="blue" > <g id="南高路" onmouseover="showRoads('南高路')" onmouseout="emptyRoads()"> <path id="ngl" fill="none" stroke="#656564" stroke-width="4" d="M161,318.895l189,14.667"/> <text font-family="宋体" font-size="20" fill="blue" > <g id="体育馆路" onmouseover="showRoads('体育馆路')" onmouseout="emptyRoads()"> <path id="tygl" fill="none" stroke="#656564" stroke-width="4" d="M162,317.895l22-245"/> <text font-family="宋体" font-size="20" fill="blue" > <g id="梅苑路" onmouseover="showRoads('梅苑路')" onmouseout="emptyRoads()"> <path id="lcsl" fill="none" stroke="#656564" stroke-width="4" d="M91,118.895l318,17"/> <text font-family="宋体" font-size="20" fill="blue"> <g id="礼西路" onmouseover="showRoads('礼西路')" onmouseout="emptyRoads()"> <path id="lxl" fill="none" stroke="#656564" stroke-width="4" d="M331,181.895l-5,90l31,2v18l6,7"/> <text font-family="宋体" font-size="20" fill="blue"> <g id="礼东路" onmouseover="showRoads('礼东路')" onmouseout="emptyRoads()"> <path id="ldl" fill="none" stroke="#656564" stroke-width="4" d="M458,188.895l-7,88l-38,30"/> <text font-family="宋体" font-size="20" fill="blue"> <g id="金陵路" onmouseover="showRoads('金陵路')" onmouseout="emptyRoads()"> <path id="jll" fill="none" stroke="#656564" stroke-width="4" d="M455,237.895l118,7"/> <text font-family="宋体" font-size="20" fill="blue"> <g id="江南路" onmouseover="showRoads('江南路')" onmouseout="emptyRoads()"> <path id="jnl" fill="none" stroke="#656564" stroke-width="4" d="M537,342.895l5.75-97.75"/> <text font-family="宋体" font-size="20" fill="blue"> <g id="两江路" onmouseover="showRoads('两江路')" onmouseout="emptyRoads()"> <path id="ljl" fill="none" stroke="#656564" stroke-width="4" stroke-linejoin="round" d="M420,101.895l73,5 l-6.141,134"/> <text font-family="宋体" font-size="20" fill="blue"> <g id="滨江东路" onmouseover="showRoads('滨江东路')" onmouseout="emptyRoads()"> <path id="dfj" fill="none" stroke="#656564" stroke-width="8" stroke-linecap="round" d="M23,577.895l10-71l15-164 l2-152l3-173"/> <text font-family="宋体" font-size="30" fill="blue"> <g id="新港西路" onmouseover="showRoads('新港西路')" onmouseout="emptyRoads()"> <path id="cxj" fill="none" stroke="#656564" stroke-width="8" stroke-linecap="round" d="M580,99.895l6,57l3,53 l-7,128l-10,83l-8,44l-5,32l-10,80l-5,65"/> <text font-family="宋体" font-size="30" fill="blue"> <g id="怡乐路" onmouseover="showRoads('怡乐路')" onmouseout="emptyRoads()"> <path id="xfl" fill="none" stroke="#656564" stroke-width="8" stroke-linecap="round" d="M12,506.895l98,19l134,27 l88,18l99,21l153,30"/> <text font-family="宋体" font-size="30" fill="blue"> <g id="下渡路" onmouseover="showRoads('下渡路')" onmouseout="emptyRoads()"> <path id="bjdl" fill="none" stroke="#656564" stroke-width="8" stroke-linecap="round" d="M12,13.895l42.979,1.432l210.039,6.998 L417,27.895l49,5l24,6l17,7l12,8l13,10l12,12l13,9l11,9l13,5l13,4l9,2"/> <text font-family="宋体" font-size="30" fill="blue"> </g> |
-- 作者:leezzcc -- 发布时间:6/2/2005 -- 应该是 “utf-16” |
-- 作者:wulemale -- 发布时间:6/2/2005 9:43:00 AM -- 不行啊。 能否麻烦您将function showRoads(String)源码贴出来瞧瞧,谢了。 |
-- 作者:wulemale -- 发布时间:6/2/2005 1:07:00 PM -- 解决了,不需要保存为unicode也不要改为UTF-16,是我自己tiptext属性中的font-family忘改了 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
62.500ms |