Home | History | Annotate | Download | only in impl

Lines Matching refs:utf8

38 	 * A converter that processes a byte buffer containing a mix of UTF8 and Latin-1/Cp1252 chars.
46 * In the case, UTF-8 is detected, it assumes wrong UTF8 chars to be a sequence of
74 // expected UTF8 bytesto come
94 // start of UTF8 sequence
106 // invalid UTF8 start char, assume to be Latin-1
107 byte[] utf8 = convertToUTF8((byte) b);
108 out.append(utf8);
115 // valid UTF8 char, add to readAheadBuffer
129 // invalid UTF8 char:
130 // 1. convert first of seq to UTF8
131 byte[] utf8 = convertToUTF8(readAheadBuffer[0]);
132 out.append(utf8);
144 // loop ends with "half" Utf8 char --> assume that the bytes are Latin-1
150 byte[] utf8 = convertToUTF8(b);
151 out.append(utf8);