LastIndexOf method can't find index of ";" HELP

Hi, I'm a newbie junior full-stack developer working mainly on the front end using React and JS. I now got assigned to a .Net core (version 5) backend project and my PC got a weird bug??? LastIndexOf method did not work when finding the index of a semicolon only on my pc on the attached picture it could not find the first ";" in the string, We suspected that this might have to do with the fact that I accidentally updated the Visual Studio 2022 version?? but after rolling back to the Previous Version the bug still persisted so far I've tried -rebuild the and clean the solution -Running on the VS code instead, -Reinstalling .net SDK -Re pulled the project repo to my local client -Restarting PC duh We're only able to reproduce the Bug with one of my coworker PC and the only thing we have in common is that we're using AMD CPU I have listed the screenshot that might help This Bug Flabbergasted my Entire Team Thank you !
No description
No description
No description
No description
No description
3 Replies
LPeter1997
LPeter19974mo ago
A longshot, but could it be a localization thing? What if you specify StringComparison.Ordinal?
HtmlCompiler
HtmlCompiler4mo ago
in an emergency case can you print the hex of the string just to see if there isn't any unicode crap like reverse order?
Really Dandy Cornman
doing this help partially help with the problem, it's just baffled me why this is an isssue in the first place???
Want results from more Discord servers?
Add your server