]> git.lyx.org Git - lyx.git/blobdiff - src/BufferEncodings.cpp
tex2lyx: refsection and bibbysection support (biblatex)
[lyx.git] / src / BufferEncodings.cpp
index 87000ac9c82402e7f24443f580926dc6c2340bf1..2cd07f2c2905d785c629a209543ca51ae43e5b7d 100644 (file)
@@ -81,7 +81,7 @@ void BufferEncodings::validate(char_type c, LaTeXFeatures & features, bool for_m
                                                features.require(feat);
                                        }
                                } else
-                                       features.addPreambleSnippet(mathpreamble);
+                                       features.addPreambleSnippet(from_utf8(mathpreamble));
                        }
                }
                // with utf8-plain, we do not load packages (see #7766)
@@ -96,7 +96,7 @@ void BufferEncodings::validate(char_type c, LaTeXFeatures & features, bool for_m
                                                features.require(feat);
                                        }
                                } else
-                                       features.addPreambleSnippet(textpreamble);
+                                       features.addPreambleSnippet(from_utf8(textpreamble));
                        }
                }
        }