Hi all,
I have a text file saved as utf8 without BOM. I loaded it into MysQL database.
An iframe is loaded with this data from MySQL. I need the caret position in the iframe in order to perform operations in the database. Everytime there's a new line the positions don't match.
For example: caret position 52 in iframe is the first character in a newline, and this letter in MySQL text column corresponds to substr(text,55,1), and the text is exactly the same..