title: PotgreSQL- ERROR: invalid byte sequence for encoding "UTF8": 0xeb 0x6e 0x74
body: <p>I am working on PostgreSQL and getting below error during insert statement execution from batch script(command line).</p>
  
  <blockquote>
    <p>ERROR:  invalid byte sequence for encoding "UTF8": 0xeb 0x6e 0x74</p>
  </blockquote>
  
  <p>I have checked client_encoding by <code>show client_encoding</code> command and it is showing UTF-8.</p>
  
  <p>Also checked database properties by using command </p>
  
  <p><code>select * from pg_database where datname='&lt;mydbName&gt;'</code></p>
  
  <p><strong>In Output</strong>: </p>
  
  <p><code>datcollate = English_United States.1252
   datctype = English_United States.1252</code></p>
  
  <p>How to resolve this issue?</p>