diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 3cf24fce7b..95838bfd74 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -929,7 +929,7 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features, os << "\\lstset{"; // do not test validity because listings_params is supposed to be valid string par = InsetListingsParams(listings_params).separatedParams(true); - os << from_ascii(par); + os << from_utf8(par); // count the number of newlines for (size_t i = 0; i < par.size(); ++i) if (par[i] == '\n') diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index 3ce9970f10..5765f022f8 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -180,7 +180,7 @@ int InsetListings::latex(Buffer const & buf, odocstream & os, if (param_string.empty()) os << "\\lstinline" << *delimiter; else - os << "\\lstinline[" << from_ascii(param_string) << "]" << *delimiter; + os << "\\lstinline[" << from_utf8(param_string) << "]" << *delimiter; } else { OutputParams rp = runparams; rp.local_font = &text_.real_current_font;