Added support for ISO-8859-16
This commit is contained in:
parent
756cf37d8f
commit
729a7107eb
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using Unity.VisualScripting;
|
||||
|
||||
namespace Parking
|
||||
{
|
||||
@ -36,22 +37,18 @@ namespace Parking
|
||||
? ParkingPreference.Front
|
||||
: ParkingPreference.Back;
|
||||
Size size;
|
||||
switch (lineData[2]) {
|
||||
case "Mały":
|
||||
string sizeString = lineData[2];
|
||||
if (sizeString == "Mały" || sizeString == "Ma" + (char)0xB3 + "y") {
|
||||
size = Size.A;
|
||||
break;
|
||||
case "Średni":
|
||||
}else if (sizeString == "Średni" || sizeString == (char)0xD7 + "redni") {
|
||||
size = Size.B;
|
||||
break;
|
||||
case "Duży":
|
||||
}else if (sizeString == "Duży" || sizeString == "Du" + (char)0xBF + "y") {
|
||||
size = Size.C;
|
||||
break;
|
||||
case "Max":
|
||||
}else if (sizeString == "Max") {
|
||||
size = Size.D;
|
||||
break;
|
||||
default:
|
||||
}
|
||||
else {
|
||||
size = Size.A;
|
||||
break;
|
||||
}
|
||||
|
||||
DateTime realArrival = DateTime.Parse(lineData[5].Contains(':') ? lineData[5] : lineData[5] + ":00",
|
||||
|
Loading…
Reference in New Issue
Block a user