title: Detect request charset in node js
body: <p>Facebook chat has a mechansim which whenever you type English, It automatically detect and display your message LTR, but when any right-to-left character you enter in input box and send it, messages displays in RTL style;</p>
  
  <p><strong>How facebook chat, detect input charset? Can I do that with javascript in node js ?</strong></p>
  
  <p>thanks in advance.</p>