From: Pawel Wasowski
Date: Fri, 28 Apr 2017 11:26:24 +0000 (+0200)
Subject: [File] Add credits for an author of used code snippet
X-Git-Tag: submit/tizen/20180514.095841~4^2^2~4
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9200eec2f2d6be9565028b1c41916b9022044cce;p=platform%2Fcore%2Fapi%2Fcordova-plugins.git
[File] Add credits for an author of used code snippet
Change-Id: I66d8d25af0c389506e6be72003ee55479ab5431c
---
diff --git a/src/lib/plugins/cordova-plugin-file/tizen/FileWriter.js b/src/lib/plugins/cordova-plugin-file/tizen/FileWriter.js
index e592166..c344315 100644
--- a/src/lib/plugins/cordova-plugin-file/tizen/FileWriter.js
+++ b/src/lib/plugins/cordova-plugin-file/tizen/FileWriter.js
@@ -21,7 +21,13 @@ cordova.define('cordova-plugin-file.tizen.FileWriter', function(require, exports
var convertTizenFileError = require('cordova-plugin-file.tizen.Errors');
var rootUtils = require('cordova-plugin-file.tizen.rootUtils');
-// https://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array
+//Code created with the help of Stack Overflow question
+//http://stackoverflow.com/a/18729931
+//Question by don kaka:
+//https://stackoverflow.com/users/2408835/don-kaka
+//Answer by Joni and Damian:
+//https://stackoverflow.com/users/318758/joni
+//https://stackoverflow.com/users/3390/damian
function toUTF8Array(str) {
var utf8 = [];
for (var i = 0; i < str.length; ++i) {