The BOM of unicode file in Freemarker's directive "include" made me crazy
来源:互联网 发布:网络小贷牌照申请流程 编辑:程序博客网 时间:2024/04/28 10:22
Just now, I was adding a navigation to our "jstore for moliyo" web project using a derective "include" as this:
...
<body style="margin:0px;padding:0px;">
<#include "navigation.html">
...
</body>
...
the file "navigation.html" is a unicode file with a BOM:
<table><tr><td>some other words.</td></tr></table>
but a line break was displayed in Microsoft Internet Explorer, but not in Mozilla Firefox.
I'd tried hard to delete the line break, but failed.
I was crazying...
But when I saved the file "navigation.html" with no BOM, the line break was fucked off in IE.
I thought this is a bug of freemarker and I'd reportted it in the sf.net.
I'd downloaded its source from the CVS repository and attempted to find the bugged code, but nothing I found.
Well, I should go back for bed, I'm sneezing as I've caught a cold last weekeed.
...
<body style="margin:0px;padding:0px;">
<#include "navigation.html">
...
</body>
...
the file "navigation.html" is a unicode file with a BOM:
<table><tr><td>some other words.</td></tr></table>
but a line break was displayed in Microsoft Internet Explorer, but not in Mozilla Firefox.
I'd tried hard to delete the line break, but failed.
I was crazying...
But when I saved the file "navigation.html" with no BOM, the line break was fucked off in IE.
I thought this is a bug of freemarker and I'd reportted it in the sf.net.
I'd downloaded its source from the CVS repository and attempted to find the bugged code, but nothing I found.
Well, I should go back for bed, I'm sneezing as I've caught a cold last weekeed.
- The BOM of unicode file in Freemarker's directive "include" made me crazy
- The BOM of unicode file in Freemarker's directive "include" made me crazy
- The BOM of unicode file in Freemarker's directive "include" made me crazy
- The BOM of unicode file in Freemarker's directive "include" made me crazy
- The BOM of unicode file in Freemarker's directive "include" made me crazy
- In Praise of the #error Directive
- the include of head file(1)
- the include of head file(2)
- THE FIRST GIRL MADE ME MOVING
- To deal with files in the same file folder with .exe uder UNICODE of VC08
- The function of include in Verilog
- what's the function of pid file?
- Include directive and variable scope in PHP
- The Beginning of me
- <#include> vs <#import> in FreeMarker
- the operator of file in web
- Info 746:* is not made in the presence of a prototype
- Info 746:* is not made in the presence of a prototype
- Quake3场景管理技术研究报告
- 邢兄的健康分享~
- CVSNT在Windows下的安装和使用
- 路由器原理和路由协议、算法详解
- 2点44分
- The BOM of unicode file in Freemarker's directive "include" made me crazy
- 成功从程序员转型到乞丐——一个很有创意的网站
- 嗓子痒
- 我想我吐了一口痰,是我的错
- 真诚这个词本来就是小说用语
- 人一生应该结三次婚
- 程序是没质量的
- 昨天在七宝见到了很多新面孔和好久不见的老面孔
- 哦,搞定了,去吃饭了,顺便睡个觉