I have this text hard-coded into the open area of a textarea that uses the following text. I also have a line of code that uses Instr to identify an Endofline, but doesn’t find it. When I go into to the binary, I only have 0d. This project works fine on a Mac. How come?
You need to replace line endings before comparing anything for line endings because of platform differences.
dim sTest as String = "whatever"
sTest = ReplaceLineEndings(sTest, EndOfLine.UNIX)
if InStr(sTest, EndOfLine.UNIX) > 0 then
// EOL was true
else
// EOL was false
end
EndOfLine is a method from Xojo that figures out the platform and the correct line ending setup and returns the proper string.
Always use EndOfLine (aka never hardcode your own computed property EOL) and ReplaceLineEndings to something you can predict before trying to do comparisons (I tend to lean toward EndOfLine.UNIX)
I do not know about your fonts issue, @Michel Bujardet might though.
Found the problem with the font. I found in Windows Character Map a dropdown for character set. It will show most of the characters in a script set. I had the wrong font.