Skip to content

Commit 64d1c3d

Browse files
committed
Fix display bug in HTMLViewer
1 parent a0ec4a4 commit 64d1c3d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

HTTPTestGenerator/Windows/Viewers/HTMLView.rbfrm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,13 @@ End
189189
SyntaxHilightContainer1.SetText(Message, Definition)
190190
mRaw = Message
191191
mType = Type
192+
Dim i As Integer
192193
If mType.CharSet <> Nil Then
193-
Dim i As Integer = mEncodings.IndexOf(mType.CharSet.internetName)
194-
If i > -1 Then EncodingList.ListIndex = i
194+
i = mEncodings.IndexOf(mType.CharSet.internetName)
195+
Else
196+
i = mEncodings.IndexOf("UTF-8")
195197
End If
198+
If i > -1 Then EncodingList.ListIndex = i
196199
mContentLength = ContentLen
197200
mDebugOutput = DebugOutput
198201
End Sub

0 commit comments

Comments
 (0)