Include charset in HTML text when using 'Dump data' in 'Edit as Table' file
已回答
When using "Dump data" for a file used with "Edit as Table" and selecting the "HTML Table" extractor the result starts like this:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
Notice this does not include any information on the character encoding of the file. This may cause problems when the data in the table contains non-ASCII characters (e.g. german umlauts). E.g. opening such an HTML file in Safari (11.0.1) will show cryptic symbols for the umlauts, while Google Chrome works fine.
Adding a line like this:
<meta charset="UTF-8">
to the <head> solves this issue.
While manually adding such a tag is possible I guess it would be nice if IntelliJ IDEA would already generated it automatically.
请先登录再写评论。
Thank you for suggestion. Filled the enhancement request: https://youtrack.jetbrains.com/issue/DBE-5470
note that you can modify existing default extractor script to add this information:
then select the modified extractor: