Good all the time of day, gentlemen (a question in the style of Monsieur).
There is a variable - the contents of the dowry. Carabas when displaying in the browser - no problem . But when writing to the database, and then reading it, it is a caravan. If I copy from the monitor, or from the source code, pull it out - copied, in the form I need, i.e. no problems. Now, I get the data from the database / table - I manually transfer the data to the same database / table. Handles - not very productive 8-)
The question is: is it possible to output a variable in PHP, in any way, and copy what the browser brought out, then equate the variable to a new value. those. with simulate output / copy / write
ps How to make from scratch without Kakakozyabr - no question, I can. That's not the question.
pps PHP, JS, JQ - the method is not interested. Performance - it does not matter, the main thing is not hands.
ppps tried to write the source code of the page to a text file - Caracozybras. If you copy-paste - no problem. So I think it's not in the encoding when writing.