我想使用asciidoc来生成一个表。我用asciidocfx。我创建了2个相同的表,一个加载外部csv文件,另一个是在asciidoc中创建的简单表。问题是,加载的csv文件中的表为这些字符产生了�" ..." 。使用asciidoc创建的表不会为" ..."
生成该符号以下是文字
.CSV table
[format="csv",options="header"]
|===================================================
include::table.csv[]
|===================================================
.Asciidoc table
[options="header"]
|====
|Hello | World
| Hi
| Atlas...
| Hi
| Atlas..
| Hi
| Atlas.
|====
table.csv的内容
Hello ,World
Hi,Atlas...
Hi,Atlas..
Hi,Atlas.
html输出的片段。
<div class="sectionbody">
<table class="tableblock frame-all grid-all spread data-line-14">
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Hello</th>
<th class="tableblock halign-left valign-top">World</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Hi</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Atlas�</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Hi</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Atlas..</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Hi</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Atlas.</p></td>
</tr>
</tbody>
</table>
<table class="tableblock frame-all grid-all spread data-line-20">
<caption class="title">Table 1. My table</caption>
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Hello</th>
<th class="tableblock halign-left valign-top">World</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Hi</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Atlas…</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Hi</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Atlas..</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">Hi</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Atlas.</p></td>
</tr>
</tbody>
</table>
</div>
&#13;
答案 0 :(得分:1)
“...”应该是单个字符而不是3个点。 因此,您有一个多字节字符,如Utf-8或其他不是ASCII的字符集。