Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3666

Encoding problem with Sonoma?

$
0
0

I’m having an encoding problem with Sonoma, at least that’s where I think the problem is.

I have time strings, e.g. “5/12/24 11/54/27 AM” coded as “String”. To save them to a file, I first write them to a MemoryBlock using StringValue:

myblock.StringValue(offset,mytime.Length) = mytime

This has worked fine up until I run it under Sonoma. For some reason, the last 3 characters are now encoded differently. I’ll get “5/28/24 10/46/57���”, with " AM" corresponding to hex “E2 80 AF” instead of “20 41 4D”.

What’s going on here and how can I fix it?

9 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3666

Trending Articles