diff --git a/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/HtmlTransferableData.java b/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/HtmlTransferableData.java index e9780b732eec..7db4e418f569 100644 --- a/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/HtmlTransferableData.java +++ b/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/HtmlTransferableData.java @@ -32,7 +32,7 @@ import java.awt.datatransfer.DataFlavor; */ public class HtmlTransferableData extends AbstractSyntaxAwareReaderTransferableData implements MarkupHandler { - @NotNull public static final DataFlavor FLAVOR = new DataFlavor("text/html;class=java.io.Reader", "HTML text"); + @NotNull public static final DataFlavor FLAVOR = new DataFlavor("text/html; class=java.io.Reader; charset=UTF-8", "HTML text"); private StringBuilder myResultBuffer; private ColorRegistry myColorRegistry; @@ -64,7 +64,8 @@ public class HtmlTransferableData extends AbstractSyntaxAwareReaderTransferableD myMaxLength = maxLength; try { buildColorMap(); - myResultBuffer.append("
")
+ .append("");
+ myResultBuffer.append("