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":
|
||||
size = Size.A;
|
||||
break;
|
||||
case "Średni":
|
||||
size = Size.B;
|
||||
break;
|
||||
case "Duży":
|
||||
size = Size.C;
|
||||
break;
|
||||
case "Max":
|
||||
size = Size.D;
|
||||
break;
|
||||
default:
|
||||
size = Size.A;
|
||||
break;
|
||||
string sizeString = lineData[2];
|
||||
if (sizeString == "Mały" || sizeString == "Ma" + (char)0xB3 + "y") {
|
||||
size = Size.A;
|
||||
}else if (sizeString == "Średni" || sizeString == (char)0xD7 + "redni") {
|
||||
size = Size.B;
|
||||
}else if (sizeString == "Duży" || sizeString == "Du" + (char)0xBF + "y") {
|
||||
size = Size.C;
|
||||
}else if (sizeString == "Max") {
|
||||
size = Size.D;
|
||||
}
|
||||
else {
|
||||
size = Size.A;
|
||||
}
|
||||
|
||||
DateTime realArrival = DateTime.Parse(lineData[5].Contains(':') ? lineData[5] : lineData[5] + ":00",
|
||||
|
Loading…
Reference in New Issue
Block a user