File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 4848import javax .swing .*;
4949import java .awt .*;
5050import java .io .IOException ;
51+ import java .nio .charset .Charset ;
5152import java .util .HashMap ;
5253import java .util .Map ;
5354import java .util .concurrent .ExecutorService ;
@@ -145,6 +146,7 @@ private String createHtmlWithCodeHighlighting(@NotNull final String content) {
145146 map .put ("css_highlight" , getExternalURL ("/highlight/styles/idea.css" ));
146147 }
147148 map .put ("code" , content );
149+ map .put ("charset" , Charset .defaultCharset ().displayName ());
148150
149151 return Templater .processTemplate ("template" , map );
150152 }
Original file line number Diff line number Diff line change 55<!DOCTYPE html>
66<html >
77<head >
8+ <meta charset =" ${charset}" >
89 <link rel =" stylesheet" href =" ${css_highlight}" >
910 <script src =" ${highlight}" ></script >
1011 <style media =" screen" type =" text/css" >
You can’t perform that action at this time.
0 commit comments