Request.Language now correctly ignores the encoding part of the current system language.

[GB.WEB]
* BUG: Request.Language now correctly ignores the encoding part of the current system language.
This commit is contained in:
Benoît Minisini 2022-10-30 20:25:18 +01:00
parent e59da7c0cc
commit 53cc9d42f1

View file

@ -325,6 +325,9 @@ Public Sub ToLanguage(sLang As String) As String
Dim iPos As Integer
Dim sFind As String
iPos = RInStr(sLang, ".")
If iPos Then sLang = Left(sLang, iPos - 1)
If InStr(sLang, "-") = 0 Then
sFind = ":" & LCase(sLang) & "="