B boredsilly Member Licensed User Longtime User Apr 9, 2013 #1 How do I append character 253 (not the Unicode equivalent which is 2 bytes) to a string? I need to write this to a file as chr(253) is the delimiter expected but it always gets written as 2 bytes c3 & bd which I guess is the Unicode equivalent.
How do I append character 253 (not the Unicode equivalent which is 2 bytes) to a string? I need to write this to a file as chr(253) is the delimiter expected but it always gets written as 2 bytes c3 & bd which I guess is the Unicode equivalent.
Erel B4X founder Staff member Licensed User Longtime User Apr 9, 2013 #2 You should probably work with bytes instead of characters. You can convert a string to bytes with: B4X: "some string".GetBytes("ASCII") This will allow you to write the byte 253 directly. Upvote 0
You should probably work with bytes instead of characters. You can convert a string to bytes with: B4X: "some string".GetBytes("ASCII") This will allow you to write the byte 253 directly.