Hi all,

I have Text in MySQL utf 8 and an iframe displaying this text, and the page content is utf8.

Does anybody know why the iframe caret position doesn't match with MySQL position when there are line breaks, and how to fix it?

Regards

How do you set the caret? And how do you measure its position? Probably your display module counts one character per line break while mysql store CR+LF, or vice versa.

But both MySQL and jsp have everything in UTF-8

And is this a problem?

No, I want everything in UTF-8! The problem was '\r' that was messing up all the application

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.