Revert to using toNumbersFromString instead of stringToUtf8Array because a valid ccnx URI doesn't have extended ASCII.
diff --git a/js/Name.js b/js/Name.js
index 5d6d4cb..7eec77a 100644
--- a/js/Name.js
+++ b/js/Name.js
@@ -38,7 +38,7 @@
for(var i=0;i<name.length;i++){
if(typeof name[i] == 'string')
- blobArrays[i]= DataUtils.stringToUtf8Array(name[i]);
+ blobArrays[i]= DataUtils.toNumbersFromString(name[i]);
else if(typeof name[i] == 'object')
blobArrays[i]= name[i] ;
else
diff --git a/js/testing/test-put-async.html b/js/testing/test-put-async.html
index f41658c..315dec8 100644
--- a/js/testing/test-put-async.html
+++ b/js/testing/test-put-async.html
@@ -36,7 +36,7 @@
var si = new SignedInfo();
si.setFields();
- var answer = DataUtils.stringToUtf8Array(content);
+ var answer = DataUtils.toNumbersFromString(content);
var co = new ContentObject(new Name(nameStr), si, answer, new Signature());
co.sign();