C#C
C#2y ago
PIE

✅ Strange parsing error with docker instance

So I have a program that scrapes prices and parses them into longs with these lines of code
HttpResponseMessage page = await client.GetAsync({the link});

long itemCost = long.Parse(itemCostElement.TextContent, NumberStyles.AllowThousands | NumberStyles.AllowCurrencySymbol);

however I got this error
The input string '$79,156' was not in a correct format.

Is this because of unicode differences in linux that doesn't work well with docker images made in windows? The above code seems to work fine on my windows machine.
Was this page helpful?