Chr(0) = nothing? So I have a problem.
Posted: Thu Nov 11, 2021 8:29 pm
Hi!
I need to create a file that writes a string.
Would be:
WriteString(#file, Chr(0)+Chr(0)+Chr(0)+Chr(6))
When the file is opened, the result is just "♠"
building in another language, I get " ♠"
But I need to build for the web, and I'm trying to do it in SB.
In PureBasic the result is the same.
I tried to save the file with various encoding types, but nothing.
Does anyone know how to do this?
I need to create a file that writes a string.
Would be:
WriteString(#file, Chr(0)+Chr(0)+Chr(0)+Chr(6))
When the file is opened, the result is just "♠"
building in another language, I get " ♠"
But I need to build for the web, and I'm trying to do it in SB.
In PureBasic the result is the same.
I tried to save the file with various encoding types, but nothing.
Does anyone know how to do this?