Quote:
Originally Posted by edon1337
That's why you should always show the full code/config.
|
Quote:
Originally Posted by fysiks
Don't do this:
Code:
replace(text, charsmax(text), "^n", "");
Do this:
Not sure this is related to your issue but you might also consider attaching the file you're trying to read so that we can look at it in our own editor and even test your code.
|
Firstable, thank you for trying to help,
I did managed to find the solution, to solve this issue I made 3 changes:
1. I changed the the read text property from "r" to "rt"
2. I removed the quotes from the line that I was read, by remove_all function.
3. MOST IMPORTANT: I created a brand new file encoded with ANSI (the old one was encoded by UTF-8, wich may explain why i wasn't been able to print the first character correctly).
I guess this issue was related to UTF-8 compatibility,
Anyway, thanks again for you all!