title: Convert french accent to specific encoding in PHP
body: <p>In php, what function can I use to convert the text 'pétition' to 'p%E9tition'.</p>
  
  <p>I have tried with <code>uft8_encode</code> and <code>uft8_decode</code> with no success.</p>