/*
- * Copyright 2008 Google Inc.
+ * Copyright 2008 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
int languageLength = statusByte & 0x1F;
// language is always ASCII-encoded:
String language = bytesToString(payload, 1, languageLength, "US-ASCII");
- String encoding = isUTF16 ? "UTF-16" : "UTF-8";
+ String encoding = isUTF16 ? "UTF-16" : "UTF8";
String text = bytesToString(payload, 1 + languageLength, payload.length - languageLength - 1, encoding);
return new String[] { language, text };
}