Added ECI for values 0-2 and also standardize character encoding names throughout...
[zxing.git] / core / src / com / google / zxing / client / result / optional / NDEFTextParsedResult.java
index fc646e4..02083c9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -58,7 +58,7 @@ public final class NDEFTextParsedResult extends AbstractNDEFParsedResult {
     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 };
   }