title: Lucene encoding, java
body: <p>I have questions about encoding in Lucene (java). </p>
  
  <p>How is working with coding in Lucene? which is the default and how can I set it? </p>
  
  <p>Or Lucene does not matter what it is encoding and it's just a matter of how adding a string to a document (java code is below) in the indexing phase, and then in the search in the index? </p>
  
  <p>In other words, I have to worry if the input text is in UTF-8 and query are also in utf-8? </p>
  
  <pre><code>Document doc = new Document ();  
  doc.add (new TextField (tagName, object.getName () Field.Store.YES));
  </code></pre>
  
  <p>Thanks for any help</p>