20 using Lucene.Net.Index;
22 namespace Lucene.Net.Analysis.Payloads
30 protected internal Encoding encoding = Encoding.UTF8;
31 protected internal String encodingName =
"UTF-8";
39 this.encoding = encoding;
40 encodingName = encoding.EncodingName;
44 public override Payload Encode(
char[] buffer,
int offset,
int length)
48 String tmp =
new String(buffer, offset, length);
52 result =
new Payload(encoding.GetBytes(tmp));
54 catch (EncoderFallbackException)