title: CSV with tab as quote character
body: <p>I have tried several CSV parsers for Java but non of them handled the following line properly:</p>
  
  <pre><code>String str = "\tvalue1\t,,\tv1,",',v3\t,value2"
  </code></pre>
  
  <p>The format is <strong>comma</strong> separated with TAB as <strong>escape</strong> character. Part of fields empty, part not escaped.</p>
  
  <p>Any suggestion for parser which handles this format good?</p>
  
  <p>For example I would expect that the above string will be parsed as:</p>
  
  <pre><code>value1
  null
  v1,",',v3
  value2
  </code></pre>
  
  <p>But it's producing the following: </p>
  
  <pre><code>value1
   null
   v1
   "
   '
   v3
   value2
  </code></pre>
  
  <hr>
  
  <p>Java Example:</p>
  
  <pre><code>import java.lang.String;
  import com.univocity.parsers.csv.CsvParser;
  import com.univocity.parsers.csv.CsvParserSettings;
  
  public class StamMain {
  
      public static void main(String[] args){
          String str = "\tvalue1\t,,\tv1,',",v3\t,value2";
          System.out.println(str);
          CsvParserSettings settings = new CsvParserSettings();
          settings.getFormat().setQuote('\t');
          CsvParser parser = new CsvParser(settings);
          String[] fields = parser.parseLine(str);
          for (String f : fields)
              System.out.println(f);
      }
  }
  </code></pre>
  
  <p>The best results achieved if TAB replaced by quote, but quoting quotes is interesting task by itself.</p>
  
  <p>Any ideas appreciated.</p>