I'm trying to import the following html using XHTMLImporter but the unicode characters appear as small squares.
- Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
</head>
<body>
<h4>Questions</h4>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>
<h6>Variable Name</h6>
</th>
<th>
<h6>Question Text</h6>
</th>
<th>
<h6>Saved Value</h6>
</th>
</tr>
</thead>
<tbody>
<tr class="gray">
<td>satisfy</td>
<td>Do you agree?</td>
<td>
<table class="table table-bordered table-condensed">
<tr>
<td>1</td>
<td>पूरी तरह से सहमत</td>
</tr>
<tr>
<td>2</td>
<td>पूरी तरह से असहमत</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
Then I thought I should HTML-escape the unicode text so I replaced it with the corresponding HTML entities like the following:
- Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
</head>
<body>
<h4>Questions</h4>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>
<h6>Variable Name</h6>
</th>
<th>
<h6>Question Text</h6>
</th>
<th>
<h6>Saved Value</h6>
</th>
</tr>
</thead>
<tbody>
<tr class="gray">
<td>satisfy</td>
<td>Do you agree?</td>
<td>
<table class="table table-bordered table-condensed">
<tr>
<td>1</td>
<td>&#2346;&#2370;&#2352;&#2368; &#2340;&#2352;&#2361; &#2360;&#2375; &#2360;&#2361;&#2350;&#2340;</td>
</tr>
<tr>
<td>2</td>
<td>&#2346;&#2370;&#2352;&#2368; &#2340;&#2352;&#2361; &#2360;&#2375; &#2309;&#2360;&#2361;&#2350;&#2340;</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
But the result was almost the same (see attached). Am I missing something?
Meletis.