Skip to content

Commit d32454e

Browse files
qwmnerbvqwmnbaldurk
authored andcommitted
Use UTF-8 encoding in shader viewer to fix character corruption
1 parent c71f3d5 commit d32454e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qrenderdoc/Code/ScintillaSyntax.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ row_major column_major unsigned signed rgb
335335

336336
void ConfigureSyntax(ScintillaEdit *scintilla, int language)
337337
{
338+
scintilla->setCodePage(SC_CP_UTF8);
339+
338340
bool hlsl = false;
339341
bool glsl = false;
340342
int lexLang = language;

0 commit comments

Comments
 (0)