title: MariaDB SELECT INTO OUTFILE escape \n \t
body: <p>I am doing SELECT INTO OUTFILE in MariaDB, but my content seems to have a lot of tab (\t) and line break (\n) in content that make the output file hard to read back. How could I escape all of them to make it easier to read back the output file?</p>
  <p>I am using this query. I need each record stay in 1 line in output file and fields are terminated by something that easy to read back.</p>
  <blockquote>
  <p>SELECT * FROM table INTO OUTFILE 'table.csv' CHARACTER SET utf8 FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n';</p>
  </blockquote>