Hey, I'm trying to extract player names from MSO packets' message and it gives me literal headache for few days now.
So NPL returns a proper PName, for example: [¥€€†]s°
But for some reason MSO message has problems with encoding (I guess) and shows it as: [・?sー
This is a big problem as soon as I try to match that PName from MSO with PName in my collection (which was stored from NPL packet) as it's different.
Can somebody please explain me why it's different and what can I do about it? I'm using InSimDotNet if it's related.
EDIT:
My InSim is local and I rely on host chat messages, I don't really see any language related escape codes (like ^L, ^G, ^C)
EDIT 2:
Seems like it's happening for only few of host messages. Some messages host sends are with correct encoding and some are not. How is this possible?
So NPL returns a proper PName, for example: [¥€€†]s°
But for some reason MSO message has problems with encoding (I guess) and shows it as: [・?sー
This is a big problem as soon as I try to match that PName from MSO with PName in my collection (which was stored from NPL packet) as it's different.
Can somebody please explain me why it's different and what can I do about it? I'm using InSimDotNet if it's related.
EDIT:
My InSim is local and I rely on host chat messages, I don't really see any language related escape codes (like ^L, ^G, ^C)
EDIT 2:
Seems like it's happening for only few of host messages. Some messages host sends are with correct encoding and some are not. How is this possible?