title: How to Encode URL Contains Unicode Characters with PHP
body: <p>Currently, I'm trying to look for a solution to encode url which contains unicode characters, Khmer Unicode. I've tried using php built-in function urlencode() and it gives result: 
  For example: <a href="http://www.example.com/?kwd=Mac+Book+Pro" rel="noreferrer">http://www.example.com/?kwd=Mac+Book+Pro</a>+នៅប្រទេសយើង</p>
  
  <p>While I've tested with Google search, it results:
  <a href="https://www.google.com.kh/#hl=en&amp;sclient=psy-ab&amp;q=Mac+Book+Pro+%E1%9E%93%E1%9F%85%E1%9E%94%E1%9F%92%E1%9E%9A%E1%9E%91%E1%9F%81%E1%9E%9F%E1%9E%99%E1%9E%BE%E1%9E%84&amp;oq=Mac+Book+Pro+%E1%9E%93%E1%9F%85%E1%9E%94%E1%9F%92%E1%9E%9A%E1%9E%91%E1%9F%81%E1%9E%9F%E1%9E%99%E1%9E%BE%E1%9E%84" rel="noreferrer">https://www.google.com.kh/#hl=en&amp;sclient=psy-ab&amp;q=Mac+Book+Pro+%E1%9E%93%E1%9F%85%E1%9E%94%E1%9F%92%E1%9E%9A%E1%9E%91%E1%9F%81%E1%9E%9F%E1%9E%99%E1%9E%BE%E1%9E%84&amp;oq=Mac+Book+Pro+%E1%9E%93%E1%9F%85%E1%9E%94%E1%9F%92%E1%9E%9A%E1%9E%91%E1%9F%81%E1%9E%9F%E1%9E%99%E1%9E%BE%E1%9E%84</a></p>
  
  <p>How to do that? Hope someone here would help me.
  Thanks in advance!</p>