Bizarre work for you...
Same problem with FindStr() here:
Code: Select all
text$ = filetostring("ram:toto.txt")
pos$ = FindStr(text$, Chr(27))
consoleprint(pos$)
Code: Select all
text$ = filetostring("ram:toto.txt")
pos$ = FindStr(text$, Chr(27))
consoleprint(pos$)
Code: Select all
text$ = FileToString("ram:toto.txt")
pos$ = FindStr(text$, Chr(27), True, 0, #ENCODING_RAW)
consoleprint(pos$)
Code: Select all
text$ = FileToString("ram:toto.txt")
s$ = PatternReplaceStr(text$, "\27%[%d*%a", "")
StringToFile(s$, "ram:toto2.txt")
Code: Select all
text$ = FileToString("ram:toto.txt")
If Not ValidateStr(text$) Then text$ = ConvertStr(text$, #ENCODING_AMIGA, #ENCODING_UTF8)
pos$ = FindStr(text$, Chr(27))
consoleprint(pos$)