100+ results for 'encodeURIComponent repo:aduyng/travel-time-watcher-chrome-extension'

Not the results you expected?

String.cs (https://github.com/kripa82/scriptsharp.git) C# · 412 lines

141 /// </summary>

142 /// <returns>The encoded string.</returns>

143 [ScriptName("encodeURIComponent")]

144 public string EncodeUriComponent() {

Serializer.js (https://github.com/ghiata/qooxdoo.git) JavaScript · 374 lines

98

99 if (value instanceof qx.core.Object && qxSerializer != null) {

100 var encValue = encodeURIComponent(qxSerializer(value));

101 if (encValue === undefined) {

102 var encValue = encodeURIComponent(value);

103 }

104 } else {

105 var encValue = encodeURIComponent(value);

106 }

107 return encodeURIComponent(name) + "=" + encValue + "&";

api.js (https://gitlab.com/artofhuman/gitlab-ce) JavaScript · 326 lines

100 // Return single project

101 project(projectPath) {

102 const url = Api.buildUrl(Api.projectPath).replace(':id', encodeURIComponent(projectPath));

103

104 return axios.get(url);

108 projectMergeRequest(projectPath, mergeRequestId, params = {}) {

109 const url = Api.buildUrl(Api.projectMergeRequestPath)

110 .replace(':id', encodeURIComponent(projectPath))

111 .replace(':mrid', mergeRequestId);

112

116 projectMergeRequestChanges(projectPath, mergeRequestId) {

117 const url = Api.buildUrl(Api.projectMergeRequestChangesPath)

118 .replace(':id', encodeURIComponent(projectPath))

119 .replace(':mrid', mergeRequestId);

120

comments.js (https://bitbucket.org/jaredstanley/facebook-js-sdk.git) JavaScript · 120 lines

63 var index = document.URL.indexOf('#');

64 if (index > 0) {

65 attr.xid = encodeURIComponent(document.URL.substring(0, index));

66 }

67 else {

68 attr.xid = encodeURIComponent(document.URL);

69 }

70 }

SF_submit.js (https://github.com/ChuguluGames/mediawiki-svn.git) JavaScript · 150 lines

114

115 if (wgAction == "formedit") {

116 params += "&target=" + encodeURIComponent( wgPageName );

117 } else if ( wgCanonicalSpecialPageName == "FormEdit") {

118

132

133 if (stop >= 0) {

134 params += "&form=" + encodeURIComponent( url.substring(start, stop) );

135

136 start = stop + 1;

137 params += "&target=" + encodeURIComponent( url.substr(start) );

138

139 } else {

jquery.history.js (https://github.com/chrux/chrux.github.com.git) JavaScript · 113 lines

16 var locationWrapper = {

17 put: function(hash, win) {

18 (win || window).location.hash = encodeURIComponent(hash);

19 },

20 get: function(win) {

tvshow.coffee (https://github.com/stuartf/hubot-scripts.git) CoffeeScript · 75 lines

17 module.exports = (robot) ->

18 robot.respond /tvshow(?: me)? (.*)/i, (msg) ->

19 query = encodeURIComponent(msg.match[1])

20 msg.http("http://services.tvrage.com/feeds/full_search.php?show=#{query}")

21 .get() (err, res, body) ->

js.cookie.js (https://github.com/cuckoobox/cuckoo.git) JavaScript · 151 lines

60

61 if (!converter.write) {

62 value = encodeURIComponent(String(value))

63 .replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);

64 } else {

66 }

67

68 key = encodeURIComponent(String(key));

69 key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);

70 key = key.replace(/[\(\)]/g, escape);

io-form-debug.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 88 lines

21 _serialize: function(o) {

22 var f = (typeof o.id === 'object') ? o.id : Y.config.doc.getElementById(o.id),

23 eUC = encodeURIComponent,

24 data = [],

25 useDf = o.useDisabled || false,

35

36 if ((useDf) ? n : (n && !d)) {

37 n = encodeURIComponent(n) + '=';

38 v = encodeURIComponent(e.value);

stringify.js (https://gitlab.com/RedDedVolvo/solidgoald) JavaScript · 281 lines

184

185 var now = new Date();

186 var str = 'a=' + encodeURIComponent(now.toISOString());

187 expect(Qs.stringify({ a: now })).to.equal(str);

188 done();

WPForms.js (https://github.com/livinglab/openlab.git) JavaScript · 85 lines

53 $('body').append(modaldialog);

54

55 var query = encodeURIComponent(shortcode).split('%3D%22').join('=').split('%22%20').join('&');

56

57 var $iframe_template = $("<iframe src='" + window.ajaxurl + "?action=outofthebox-getpopup&type=shortcodebuilder&asuploadbox=1&" + query + "' width='100%' height='600' tabindex='-1' frameborder='0'></iframe>");

script.js (https://bitbucket.org/miya0001/wp-typing.git) JavaScript · 132 lines

123

124 var url = 'https://twitter.com/intent/tweet?url=http://firegoby.jp/typing/&text=';

125 var text = encodeURIComponent("My score is "+wpm+' and Accuracy is '+acc+'% #wptyping');

126 $('#tweet').attr('href', url+text);

127

githugs.js (https://github.com/jakemcgraw/githugs-public.git) JavaScript · 121 lines

62 var body = [];

63 for (var key in data) {

64 body.push(key + '=' + encodeURIComponent(data[key]));

65 }

66 data = body.join('&');

73 var params = [];

74 for (var key in data) {

75 params.push(key + '=' + encodeURIComponent(data[key]));

76 }

77 this.request('GET', url + '?' + params.join('&'), false, callback);

index.erb (https://github.com/koba290/rhodes-system-api-samples.git) Ruby HTML · 353 lines

147 //alert("ajaxCallWithParam() 2");

148 //alert("about to open xmlHttpReq");

149 var params = param_name+'=' + encodeURIComponent(param_value);

150 //alert("ajaxCallWithParam() 3");

151 xmlHttpReq.open("GET", url+'?&'+params, true);

Serializer.js (https://github.com/Seldaiendil/meyeOS.git) JavaScript · 344 lines

89 {

90 if (value instanceof qx.core.Object && qxSerializer != null) {

91 var encValue = encodeURIComponent(qxSerializer(value));

92 if (encValue === undefined) {

93 var encValue = encodeURIComponent(value);

94 }

95 } else {

96 var encValue = encodeURIComponent(value);

97 }

98 return encodeURIComponent(name) + "=" + encValue + "&";

main.js (https://github.com/xuwei-k/xuwei-k.github.com.git) JavaScript · 165 lines

1 const download = function(filename, text) {

2 const element = document.createElement('a');

3 element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));

4 element.setAttribute('download', filename);

5

fetch-canvas-tainting-iframe.html (https://github.com/rillian/firefox.git) HTML · 294 lines

143 create_test_promise(

144 image_url +

145 '&mode=same-origin&url=' + encodeURIComponent(image_url),

146 '',

147 NOT_TAINTED),

148 create_test_promise(

149 image_url +

150 '&mode=same-origin&url=' + encodeURIComponent(image_url),

151 'anonymous',

152 NOT_TAINTED),

153 create_test_promise(

154 image_url +

155 '&mode=same-origin&url=' + encodeURIComponent(image_url),

156 'use-credentials',

157 NOT_TAINTED),

jasmine-html.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 190 lines

58 var suite = suites[i];

59 var suiteDiv = this.createDom('div', { className: 'suite' },

60 this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"),

61 this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, suite.description));

130 }

131 var specDiv = this.createDom('div', { className: 'spec ' + status },

132 this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"),

133 this.createDom('a', {

134 className: 'description',

135 href: '?spec=' + encodeURIComponent(spec.getFullName()),

136 title: spec.getFullName()

137 }, spec.description));

jobs.html (https://github.com/gabrielhurley/horizon.git) HTML · 88 lines

54 form.find(".close").click();

55 $(".create_job_class")[0].href = "launch-job-new-cluster?" +

56 "plugin_name=" + encodeURIComponent(plugin) +

57 "&hadoop_version=" + encodeURIComponent(version) +

58 "&job_id=" + encodeURIComponent(job_id);

59 $(".create_job_class").click();

60 $(".create_job_class")[0].href = oldHref;

portal-activate-data.html (https://github.com/chromium/chromium.git) HTML · 94 lines

18 try {

19 const portal = w.document.createElement('portal');

20 portal.src = new URL('resources/portal-activate-data-portal.html?logic=' + encodeURIComponent(logic), location.href);

21 w.document.body.appendChild(portal);

22 assert_equals((await nextMessage(portal)).data, 'ready');

reporting-coop-navigated-popup.https.html (https://github.com/chromium/chromium.git) HTML · 85 lines

23 const noCOOPUrl = executor_path +

24 convertToWPTHeaderPipe(getReportingEndpointsHeader(location.origin)) +

25 `|header(Cross-Origin-Opener-Policy,${encodeURIComponent(`unsafe-none; report-to="${popupReportEndpoint.name}"`)})` +

26 `&uuid=${noCoopToken}`;

27 const coopUrl = executor_path +

28 convertToWPTHeaderPipe(getReportingEndpointsHeader(location.origin)) +

29 `|header(Cross-Origin-Opener-Policy,${encodeURIComponent(`same-origin; report-to="${redirectReportEndpoint.name}"`)})` +

30 `&uuid=${coopToken}`;

31

panel.js (https://gitlab.com/Guy1394/gaia) JavaScript · 98 lines

84 // Non-ASCII chars in SSID will be encoded by UTF-8, and length of

85 // each char might be longer than 1 byte.

86 // Use encodeURIComponent() to encode ssid, then calculate correct

87 // length.

88 var encoder = new TextEncoder('utf-8');

musicplayer.html (https://bitbucket.org/pombredanne/spip-zone-treemap.git) HTML · 90 lines

72 // <![CDATA[

73 var flashvars[(#GET{objet_spip})]#ENV{id} = {};

74 flashvars[(#GET{objet_spip})]#ENV{id}.playlist_url = encodeURIComponent("[(#URL_PAGE{xspf}|url_absolue|parametre_url{type,mp3|m3u,'&'}|parametre_url{[(#GET{objet_spip})],[(#GET{objet_val})],'&'})]");

75 [(#GET{autoplay}|=={true}|oui)flashvars[(#GET{objet_spip})]#ENV{id}.autoplay ="#GET{autoplay}";]

76 flashvars[(#GET{objet_spip})]#ENV{id}.repeat_playlist = "#GET{repeat}";

parameters.js (https://github.com/PatientOrderSets/ICEfaces-1.8.2-Enhancements.git) JavaScript · 103 lines

89

90 asURIEncodedString: function() {

91 return encodeURIComponent(this.name) + '=' + encodeURIComponent(this.value);

92 },

93

settings.js (https://github.com/runeh/dragonfly-stp-1.git) JavaScript · 150 lines

109 {

110 document.cookie = name + "="+

111 encodeURIComponent(value)+

112 "; expires="+(new Date(new Date().getTime()+ (360 * 24 * 60 * 60 * 1000 ))).toGMTString()+

113 "; path=/";

publish.js (https://github.com/FesterCluck/npm.git) JavaScript · 106 lines

36 }

37 data._id = data.name+"@"+data.version

38 var attURI = encodeURIComponent(data.name)

39 + "/-/"

40 + encodeURIComponent(data.name)

41 + "-"

42 + encodeURIComponent(data.version)

43 + ".tgz"

44 data.dist = data.dist || {}

59 return log.er(cb, "Failed PUT response "+(response && response.statusCode))(er)

60 }

61 var dataURI = encodeURIComponent(data.name)+"/"+encodeURIComponent(data.version)

62

63 var tag = data.tag || npm.config.get("tag")

javascript.js (https://gitlab.com/JunaYa/JunaYa-blog) JavaScript · 113 lines

14 built_in:

15 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' +

16 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' +

17 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' +

18 'TypeError URIError Number Math Date String RegExp Array Float32Array ' +

customer_reward.tpl (https://github.com/elleeott/WPOC-boilerplate.git) Smarty Template · 88 lines

67

68 if (filter_date_start) {

69 url += '&filter_date_start=' + encodeURIComponent(filter_date_start);

70 }

71

73

74 if (filter_date_end) {

75 url += '&filter_date_end=' + encodeURIComponent(filter_date_end);

76 }

77

main.qml (https://gitlab.com/asmw/quadsh-mid-sauzee) QML · 224 lines

54 target: fileDialog

55 onExistingFileNameReady: {

56 root.sounds[currentIndex] = "file://" + encodeURIComponent(result);

57 saveSounds();

58 }

querystring-stringify-debug.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 112 lines

19 * the delimiters would not normally be handled properly by the builtin

20 * (en|de)codeURIComponent functions.

21 * Default: encodeURIComponent

22 * @module querystring

23 * @submodule querystring-stringify

25 * @static

26 **/

27 QueryString.escape = encodeURIComponent;

28

29 /**

js.cookie.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 139 lines

56 } catch (e) {}

57

58 value = encodeURIComponent(String(value));

59 value = value.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);

60

61 key = encodeURIComponent(String(key));

62 key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);

63 key = key.replace(/[\(\)]/g, escape);

demo.js (https://github.com/aadrian/highcharts.com.git) JavaScript · 120 lines

66 if (Object.hasOwnProperty.call(obj, p)) {

67 str.push(

68 encodeURIComponent(p) + '=' + encodeURIComponent(obj[p])

69 );

70 }

jasmine_additions.js (https://github.com/heimidal/midas.git) JavaScript · 117 lines

68 }

69 var specDiv = this.createDom('div', { className: 'spec ' + status, style: style },

70 this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"),

71 this.createDom('a', {

72 className: 'description',

73 href: '?spec=' + encodeURIComponent(spec.getFullName()),

74 title: spec.getFullName()

75 }, spec.description));

addcslashes.js (https://gitlab.com/rickoverman/doo-cli) JavaScript · 158 lines

135 default:

136 //target += _pad(cca.toString(8), 3);break; // Sufficient for UTF-16

137 encoded = encodeURIComponent(c);

138

139 // 3-length-padded UTF-8 octets

base.html (https://github.com/yuvipanda/lemoncurry.git) HTML · 75 lines

64 for(var i = 0; i < links.length; i++) {

65 if(links[i].href.indexOf('#disqus_thread') >= 0) {

66 query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';

67 }

68 }

sha1.js (https://gitlab.com/link233/bootmw) JavaScript · 147 lines

52

53 // utf8_encode

54 str = unescape(encodeURIComponent(str));

55 var str_len = str.length;

56

jsCookieTest.js (https://gitlab.com/mohamed_hussein/prodt) JavaScript · 275 lines

90 browser

91 .setCookie({

92 name: encodeURIComponent(' js_cookie_test_encoded'),

93 value: encodeURIComponent(' red panda'),

PingServerFacts.js (https://gitlab.com/scgitlab/dsdsds) JavaScript · 81 lines

32 QUnit.asyncTimeoutTest(transport + " transport calls Ping Server with custom query string in url", testUtilities.defaultTestTimeout, function (end, assert, testName) {

33 var connection = testUtilities.createHubConnection(end, assert, testName),

34 expectedQs = window.encodeURIComponent(testName),

35 savedAjax = $.ajax,

36 testPingServer = function () {

axurerp_pagespecificscript.js (https://github.com/openstate/Wiekiesjij.git) JavaScript · 313 lines

30

31 function GetQuerystring() {

32 return '#OnLoadVariable=' + encodeURIComponent($OnLoadVariable) + '&CSUM=1';

33 }

34

person.js (https://gitlab.com/mikebavon/TripTicket) JavaScript · 122 lines

42 var confpass = document.getElementById('regconfirmpass').value;

43

44 var params = 'fname=' + encodeURIComponent(fname)

45 + '&lname=' + encodeURIComponent(lname)

46 + '&id=' + encodeURIComponent(id)

47 + '&username=' + encodeURIComponent(username)

48 + '&password=' + encodeURIComponent(password);

49

50 if (password == confpass){

79 var password = document.getElementById('password').value;

80

81 var params = 'username=' + encodeURIComponent(username)

82 + '&password=' + encodeURIComponent(password);

details.js (https://github.com/FriedWishes/showslow.git) JavaScript · 102 lines

83 {

84 height: "15em",

85 initialRequest: "url=" + encodeURIComponent(url) + "&ver=" + ydataversion

86 });

87

89 {

90 height: "15em",

91 initialRequest: "url=" + encodeURIComponent(url) + "&ver=" + psdataversion

92 });

93

95 {

96 height: "15em",

97 initialRequest: "url=" + encodeURIComponent(url) + "&ver=" + dtdataversion

98 });

99 }

show.html.erb (https://gitlab.com/markglenfletcher/gitlab-ee) Ruby HTML · 99 lines

46 function updateURL() {

47 var newSearch = '?' + Object.keys(parameters).map(function (key) {

48 return encodeURIComponent(key) + '=' +

49 encodeURIComponent(parameters[key]);

sale_order.tpl (https://bitbucket.org/mjalajel/opencart.git) Smarty Template · 142 lines

116

117 if (filter_date_start) {

118 url += '&filter_date_start=' + encodeURIComponent(filter_date_start);

119 }

120

122

123 if (filter_date_end) {

124 url += '&filter_date_end=' + encodeURIComponent(filter_date_end);

125 }

126

128

129 if (filter_group) {

130 url += '&filter_group=' + encodeURIComponent(filter_group);

131 }

132

frmcreatefolder.html (https://github.com/filipefumaux/projectfedena_v2.0.git) HTML · 108 lines

48 }

49

50 oConnector.SendCommand('CreateFolder', 'NewFolderName=' + encodeURIComponent(sFolderName), CreateFolderCallBack);

51 }

52

query.js (https://github.com/raidrush-dev/JNode.git) JavaScript · 461 lines

420

421 /**

422 * uses encodeURIComponent

423 *

424 * @param {String} value

427 encode: function encode(value)

428 {

429 return encodeURIComponent(value);

430 }

431 };

cp.js (https://github.com/bigswitch/snac.git) JavaScript · 117 lines

108 case 'password':

109 case 'textarea':

110 postStr += formElem.name + '=' + encodeURIComponent(formElem.value) + '&'

111 break;

112 }

trees.js (https://github.com/webpulser/forgeos_cms.git) JavaScript · 94 lines

82 url: url,

83 complete: putInPageList(jQuery(link).text(), jQuery(link).attr('title'), block_id, page_id),

84 data: 'authenticity_token=' + encodeURIComponent(window._forgeos_js_vars.token),

85 dataType:'text',

86 type:'post'

webview-spec.coffee (https://gitlab.com/Rockyspade/electron) CoffeeScript · 195 lines

106 <script>console.log('ok');</script>

107 "

108 encoded = btoa(unescape(encodeURIComponent(src)))

109 listener = (e) ->

110 assert /Not allowed to load local resource/.test(e.message)

120 <script>console.log('ok');</script>

121 "

122 encoded = btoa(unescape(encodeURIComponent(src)))

123 listener = (e) ->

124 assert.equal e.message, 'ok'

encode.js (https://github.com/v0lkan/o2.js.git) JavaScript · 138 lines

122

123 exports.escape = function(str) {

124 return encodeURIComponent([kEmpty, str].join(kEmpty));

125 };

126

tests.js (https://github.com/bangnaga/jQuery-File-Upload.git) JavaScript · 1093 lines

22 $.each(files, function (index, file) {

23 $.ajax({

24 url: url + '?file=' + encodeURIComponent(file.name),

25 type: 'DELETE'

26 });

actions_spec.js (https://gitlab.com/klml/gitlab-ee) JavaScript · 448 lines

121 const url = Api.buildUrl(Api.createBranchPath).replace(

122 ':id',

123 encodeURIComponent(projectEndpoint),

124 );

125 mock.onGet(url).replyOnce(httpStatusCodes.OK, mockBranches);

script.js (https://github.com/anod/Web-Admin-Lite-Perl.git) JavaScript · 136 lines

95 function execute(cmd) {

96 terminal_history.push(cmd);

97 var cmd_escaped = encodeURIComponent(cmd);

98 $.ajax({

99 type: "POST",

bootstrap-table-cookie.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 234 lines

36 }

37

38 document.cookie = encodeURIComponent(cookieName) + '=' + encodeURIComponent(sValue) + calculateExpiration(vEnd) + (sDomain ? '; domain=' + sDomain : '') + (sPath ? '; path=' + sPath : '') + (bSecure ? '; secure' : '');

39 return true;

40 };

45 return null;

46 }

47 return decodeURIComponent(document.cookie.replace(new RegExp('(?:(?:^|.*;)\\s*' + encodeURIComponent(cookieName).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=\\s*([^;]*).*$)|^.*$'), '$1')) || null;

48 };

49

52 return false;

53 }

54 return (new RegExp('(?:^|;\\s*)' + encodeURIComponent(cookieName).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=')).test(document.cookie);

55 };

56

yql.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 197 lines

115

116 Y.each(this._params, function(v, k) {

117 qs.push(k + '=' + encodeURIComponent(v));

118 });

119

application.js (https://github.com/GerManson/german.pikevo.com.git) JavaScript · 115 lines

86 var currentImage = Application.img.find("img");

87

88 //nextFrameImage = encodeURIComponent(nextFrameImage);

89

90 //console.debug(nextFrameImage);

form.js (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) JavaScript · 298 lines

114

115 if (parameter) {

116 var key = encodeURIComponent(parameter[0]);

117 if (key.length == 0) return;

118

121

122 return parameter[1].map(function(value) {

123 return key + '=' + encodeURIComponent(value);

124 }).join('&');

125 }

chunked-uploads.js (https://github.com/vaibhav011286/file-uploader.git) JavaScript · 346 lines

143 assert.ok(!uploadRequest.requestHeaders["x-ms-meta-qqfilename"]);

144 assert.equal(uploadRequest.method, "PUT");

145 assert.equal(uploadRequest.url, expectedSasUri + "&comp=block&blockid=" + encodeURIComponent(btoa("00000")));

146 uploadRequest.respond(201, null, null);

147

160 assert.ok(!uploadRequest.requestHeaders["x-ms-meta-qqfilename"]);

161 assert.equal(uploadRequest.method, "PUT");

162 assert.equal(uploadRequest.url, expectedSasUri + "&comp=block&blockid=" + encodeURIComponent(btoa("00001")));

163 uploadRequest.respond(201, null, null);

164

237 assert.equal(fileTestHelper.getRequests().length, 3);

238 uploadRequest = fileTestHelper.getRequests()[2];

239 assert.equal(uploadRequest.url, expectedSasUri + "&comp=block&blockid=" + encodeURIComponent(btoa("00000")));

240 uploadRequest.respond(404, null, null);

241 assert.equal(uploader.getUploads()[0].status, qq.status.UPLOAD_FAILED);

store_form.tpl (https://github.com/sansanwawa/e-commerse.git) Smarty Template · 486 lines

89 <tr>

90 <td><?php echo $entry_template; ?></td>

91 <td><select name="config_template" onchange="$('#template').load('index.php?route=setting/store/template&token=<?php echo $token; ?>&template=' + encodeURIComponent(this.value));">

92 <?php foreach ($templates as $template) { ?>

93 <?php if ($template == $config_template) { ?>

448 </div>

449 <script type="text/javascript"><!--

450 $('#template').load('index.php?route=setting/store/template&token=<?php echo $token; ?>&template=' + encodeURIComponent($('select[name=\'config_template\']').attr('value')));

451

452 $('select[name=\'config_zone_id\']').load('index.php?route=setting/store/zone&token=<?php echo $token; ?>&country_id=<?php echo $config_country_id; ?>&zone_id=<?php echo $config_zone_id; ?>');

456 $('#dialog').remove();

457

458 $('#content').prepend('<div id="dialog" style="padding: 3px 0px 0px 0px;"><iframe src="index.php?route=common/filemanager&token=<?php echo $token; ?>&field=' + encodeURIComponent(field) + '" style="padding:0; margin: 0; display: block; width: 100%; height: 100%;" frameborder="no" scrolling="auto"></iframe></div>');

459

460 $('#dialog').dialog({

setting.tpl (https://github.com/sansanwawa/e-commerse.git) Smarty Template · 785 lines

78 <tr>

79 <td><?php echo $entry_template; ?></td>

80 <td><select name="config_template" onchange="$('#template').load('index.php?route=setting/setting/template&token=<?php echo $token; ?>&template=' + encodeURIComponent(this.value));">

81 <?php foreach ($templates as $template) { ?>

82 <?php if ($template == $config_template) { ?>

747 </div>

748 <script type="text/javascript"><!--

749 $('#template').load('index.php?route=setting/setting/template&token=<?php echo $token; ?>&template=' + encodeURIComponent($('select[name=\'config_template\']').attr('value')));

750

751 $('select[name=\'config_zone_id\']').load('index.php?route=setting/setting/zone&token=<?php echo $token; ?>&country_id=<?php echo $config_country_id; ?>&zone_id=<?php echo $config_zone_id; ?>');

755 $('#dialog').remove();

756

757 $('#content').prepend('<div id="dialog" style="padding: 3px 0px 0px 0px;"><iframe src="index.php?route=common/filemanager&token=<?php echo $token; ?>&field=' + encodeURIComponent(field) + '" style="padding:0; margin: 0; display: block; width: 100%; height: 100%;" frameborder="no" scrolling="auto"></iframe></div>');

758

759 $('#dialog').dialog({

web_pdf_preview.js (https://gitlab.com/darmawan.fatria/provjabar-upkp-addons) JavaScript · 125 lines

27 };

28 var url = self.session.url('/report/preview', params);

29 //window.open('/report/preview?data=' + encodeURIComponent(JSON.stringify(response)) + '&token=' + new Date().getTime() + '&session_id=' + self.session.session_id, 'report', '');

30 window.open(url, 'report', '');

31 instance.web.unblockUI();

65 }

66 } else {

67 report_url += "?options=" + encodeURIComponent(JSON.stringify(action.data));

68 report_url += "&context=" + encodeURIComponent(JSON.stringify(action.context));

qwebactionmanager.js (https://gitlab.com/darmawan.fatria/kabbeltim-skp-addons) JavaScript · 97 lines

48 }

49 } else {

50 report_url += "?options=" + encodeURIComponent(JSON.stringify(action.data));

51 report_url += "&context=" + encodeURIComponent(JSON.stringify(action.context));

encode_decode_uri.js (https://gitlab.com/AnneSmile/v8) JavaScript · 102 lines

100

101 checkWithFunctions("encodeURI", "decodeURI");

102 checkWithFunctions("encodeURIComponent", "decodeURIComponent");

103

cookie.js (https://github.com/apontes/RouteFlow.git) JavaScript · 102 lines

72 if(exp && exp.toUTCString){ props.expires = exp.toUTCString(); }

73

74 value = encodeURIComponent(value);

75 var updatedCookie = name + "=" + value, propName;

76 for(propName in props){

registration.https.html (https://github.com/rillian/firefox.git) HTML · 368 lines

130 promise_test(function(t) {

131 var script = 'resources/redirect.py?Redirect=' +

132 encodeURIComponent('/resources/registration-worker.js');

133 var scope = 'resources/scope/redirect/';

134 return assert_promise_rejects(

fetch-request-redirect.https.html (https://github.com/rillian/firefox.git) HTML · 372 lines

54 var HTML_URL = base_path() + 'resources/dummy.html';

55

56 var REDIRECT_TO_IMAGE_URL = REDIRECT_URL + encodeURIComponent(IMAGE_URL);

57 var REDIRECT_TO_AUDIO_URL = REDIRECT_URL + encodeURIComponent(AUDIO_URL);

58 var REDIRECT_TO_XHR_URL = REDIRECT_URL + encodeURIComponent(XHR_URL);

59 var REDIRECT_TO_HTML_URL = REDIRECT_URL + encodeURIComponent(HTML_URL);

77 assert_resolves(

78 frame.contentWindow.xhr(

79 './?url=' + encodeURIComponent(REDIRECT_TO_XHR_URL) +

80 '&redirect-mode=follow'),

81 'Redirected XHR with Request.redirect=follow should succeed.'),

82 assert_rejects(

83 frame.contentWindow.xhr(

84 './?url=' + encodeURIComponent(REDIRECT_TO_XHR_URL) +

85 '&redirect-mode=error'),

86 'Redirected XHR with Request.redirect=error should fail.'),

fetch-event-redirect.https.html (https://github.com/rillian/firefox.git) HTML · 1102 lines

27 return wait_for_state(t, reg.installing, 'activated');

28 }).then(function() {

29 return with_iframe(scope + '?url=' + encodeURIComponent(frameURL));

30 }).then(function(frame) {

31 var hostKeySuffix = test['url_credentials'] ? '_WITH_CREDS' : '';

36 host = host_info['HTTPS_REMOTE_ORIGIN' + hostKeySuffix]

37 } else if (test['redirect_dest'] === 'cors') {

38 acaorigin = '?ACAOrigin=' + encodeURIComponent(host_info['HTTPS_ORIGIN']);

39 host = host_info['HTTPS_REMOTE_ORIGIN' + hostKeySuffix]

40 }

41

42 var dest = '?Redirect=' + encodeURIComponent(host + success + acaorigin);

43

44 var expectedTypeParam = test['expected_type']

test.js (https://gitlab.com/emad.rashad/mls-grading) JavaScript · 1260 lines

22 $.each(result.files, function (index, file) {

23 $.ajax({

24 url: url + '?file=' + encodeURIComponent(file.name),

25 type: 'DELETE'

26 });

user-input.jsp (https://github.com/yangjiandong/sshapp.git) JavaServer Pages · 106 lines

25 loginName: {

26 required: true,

27 remote: "user!checkLoginName.action?oldLoginName=" + encodeURIComponent('${symbol_dollar}{loginName}')

28 },

29 name: "required",

store_form.tpl (https://bitbucket.org/allanxyh/uniquemall.git) Smarty Template · 573 lines

89 <tr>

90 <td><?php echo $entry_template; ?></td>

91 <td><select name="config_template" onchange="$('#template').load('index.php?route=setting/store/template&token=<?php echo $token; ?>&template=' + encodeURIComponent(this.value));">

92 <?php foreach ($templates as $template) { ?>

93 <?php if ($template == $config_template) { ?>

495 </div>

496 <script type="text/javascript"><!--

497 $('#template').load('index.php?route=setting/store/template&token=<?php echo $token; ?>&template=' + encodeURIComponent($('select[name=\'config_template\']').attr('value')));

498 //--></script>

499 <script type="text/javascript"><!--

545 $('#dialog').remove();

546

547 $('#content').prepend('<div id="dialog" style="padding: 3px 0px 0px 0px;"><iframe src="index.php?route=common/filemanager&token=<?php echo $token; ?>&field=' + encodeURIComponent(field) + '" style="padding:0; margin: 0; display: block; width: 100%; height: 100%;" frameborder="no" scrolling="auto"></iframe></div>');

548

549 $('#dialog').dialog({

setting.tpl (https://bitbucket.org/allanxyh/uniquemall.git) Smarty Template · 931 lines

78 <tr>

79 <td><?php echo $entry_template; ?></td>

80 <td><select name="config_template" onchange="$('#template').load('index.php?route=setting/setting/template&token=<?php echo $token; ?>&template=' + encodeURIComponent(this.value));">

81 <?php foreach ($templates as $template) { ?>

82 <?php if ($template == $config_template) { ?>

manufacturer_form.tpl (https://bitbucket.org/allanxyh/uniquemall.git) Smarty Template · 105 lines

77 $('#dialog').remove();

78

79 $('#content').prepend('<div id="dialog" style="padding: 3px 0px 0px 0px;"><iframe src="index.php?route=common/filemanager&token=<?php echo $token; ?>&field=' + encodeURIComponent(field) + '" style="padding:0; margin: 0; display: block; width: 100%; height: 100%;" frameborder="no" scrolling="auto"></iframe></div>');

80

81 $('#dialog').dialog({

84 if ($('#' + field).attr('value')) {

85 $.ajax({

86 url: 'index.php?route=common/filemanager/image&token=<?php echo $token; ?>&image=' + encodeURIComponent($('#' + field).val()),

87 dataType: 'text',

88 success: function(data) {

customer_list.tpl (https://github.com/sansanwawa/e-commerse.git) Smarty Template · 195 lines

146

147 if (filter_name) {

148 url += '&filter_name=' + encodeURIComponent(filter_name);

149 }

150

152

153 if (filter_email) {

154 url += '&filter_email=' + encodeURIComponent(filter_email);

155 }

156

158

159 if (filter_customer_group_id != '*') {

160 url += '&filter_customer_group_id=' + encodeURIComponent(filter_customer_group_id);

161 }

162

Network.yml (https://github.com/bataboske/titanium_mobile.git) YAML · 214 lines

78 description: input value to be decoded

79 type: String

80 - name: encodeURIComponent

81 description: encode a URI component part using URI encoding

82 returns:

git.js (https://github.com/tpurtell/changedna.git) JavaScript · 88 lines

12

13 function encodeRepository(repository) {

14 return encodeURIComponent(repository);

15 }

16 function getOutputBase(repository) {

appFolderList.js (https://bitbucket.org/ferOnti/processmaker.git) JavaScript · 297 lines

270

271

272 //ajax_function('appFolderAjax','documentdelete','sFileUID='+encodeURIComponent(appDocId),'POST');

273 //window.location = 'appFolderList';

274

form.js (https://gitlab.com/axeltizon/magento-demopoweraccess) JavaScript · 194 lines

137 url = url.replace(/[\/&]+$/, '');

138 $.each(params, function(key, value) {

139 url += concat[0] + key + concat[1] + window.encodeURIComponent(value);

140 });

141 return url + (concat[0] === '/' ? '/' : '');

gestionBodega.js (https://bitbucket.org/juliojavieer/prueba_03.git) JavaScript · 216 lines

12 console.log("id_bodega: ");

13

14 var jsonBod = encodeURIComponent(

15 '{"id_bodega":"' + id_bod

16 + '","nombre_bodega":"' + nom_bod + '"}');

64 console.log(nombre);

65

66 var jsonBod = encodeURIComponent(

67 '{"id_bodega":"' + id_bod

68 + '","nombre_bodega":"' + nombre + '"}');

config.js (https://gitlab.com/slice-group/paraguana-mall-w) JavaScript · 130 lines

69 } else {

70 for ( var i in params )

71 queryString.push( i + "=" + encodeURIComponent( params[ i ] ) );

72 }

73

cookies.js (https://gitlab.com/Blueprint-Marketing/cdnjs) JavaScript · 156 lines

79

80 Cookies._generateCookieString = function (key, value, options) {

81 key = key.replace(/[^#$&+\^`|]/g, encodeURIComponent);

82 key = key.replace(/\(/g, '%28').replace(/\)/g, '%29');

83 value = (value + '').replace(/[^!#$&-+\--:<-\[\]-~]/g, encodeURIComponent);

apps.jsp (https://bitbucket.org/y_widyatama/jogetworkflow-v3-fork.git) JavaServer Pages · 81 lines

73 var base = 'http://${pageContext.request.serverName}:${pageContext.request.serverPort}';

74 var path = base + '${pageContext.request.contextPath}';

75 document.location = base + '/jwdesigner/designer/webstart.jsp?path=' + encodeURIComponent(path) + '&deploy=deploy&locale=en';

76 }

77 }

test.js (https://github.com/JianMeng/sproutcore.git) JavaScript · 314 lines

189 var url = testEnv.url || 'http://example.com/search';

190 var q = testEnv.q || 'a search test';

191 return url + '?q='+encodeURIComponent(q);

192 }

193

GAPokki.js (https://github.com/CambriaK/Pokki-1.git) JavaScript · 230 lines

83 var qa = [];

84 for (var key in params) {

85 qa.push(key + '=' + encodeURIComponent(params[key]));

86 }

87 return '?' + qa.join('&');

main.js (https://bitbucket.org/WarrenFNS/epsconnect.git) JavaScript · 258 lines

219 url = url + "&loc=" + Location;

220 url = url + "&rowID=" + Location + "AER" + new Date().getTime();

221 url = url + "&name=" + encodeURIComponent(getElementObject("afterERName").value);

222 url = url + "&desc=" + encodeURIComponent(getElementObject("afterERDesc").value);

223 url = url + "&addr=" + encodeURIComponent(getElementObject("afterERAddr").value);

224 url = url + "&city=" + encodeURIComponent(getElementObject("afterERCity").value);

225 url = url + "&zip=" + encodeURIComponent(getElementObject("afterERZip").value);

226 url = url + "&tel=" + encodeURIComponent(getElementObject("afterERTel").value);

237 url = url + "?category=AfterER";

238 url = url + "&loc=" + Location;

239 url = url + "&rowID=" + encodeURIComponent(currAfterER);

240 url = url + "&name=" + encodeURIComponent(getElementObject("afterERName").value);

241 url = url + "&desc=" + encodeURIComponent(getElementObject("afterERDesc").value);

242 url = url + "&addr=" + encodeURIComponent(getElementObject("afterERAddr").value);

hash.js (https://github.com/jwheare/prototype.git) JavaScript · 223 lines

152 function toQueryPair(key, value) {

153 if (Object.isUndefined(value)) return key;

154 return key + '=' + encodeURIComponent(String.interpret(value));

155 }

156

162 function toQueryString() {

163 return this.inject([], function(results, pair) {

164 var key = encodeURIComponent(pair.key), values = pair.value;

165

166 if (values && typeof values == 'object') {

browser_rules_pseudo_lock_options.js (https://github.com/rillian/firefox.git) JavaScript · 131 lines

26

27 add_task(function* () {

28 yield addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));

29 let {inspector, view} = yield openRuleView();

30 yield selectNode("div", inspector);

worker_fileReader.js (https://github.com/rillian/firefox.git) JavaScript · 419 lines

25

26 function convertToUTF8(s) {

27 return unescape(encodeURIComponent(s));

28 }

29

xd.js_1346385827.m.js (https://bitbucket.org/tislamov/xdc.git) JavaScript · 112 lines

101 else

102 {if(config.canClose){$('.cancel-window').click(function(ev){window.location=location.href;$(this).parents().dialog('close');return false;});}else{$('.cancel-window').remove();}}}});$('#registerForm').ajaxForm({beforeSend:function(){that.doAjaxFormBeforeSend({formId:'#registerForm'});},success:function(data){data=$.parseJSON(data);$('button[type=submit]','#registerForm').attr('disabled',false).removeClass('disabled').fadeTo(100,1);that.doAjaxFormSuccess({formId:'#registerForm',data:data,errorsPrefix:'RegistrationForm_',inputPrefix:'user[',inputPostfix:']',statusSuccess:function(response){return that.redirect({to:response.redirectUrl});}});},error:function(xhr,status,response){that.doAjaxFormError({formId:'#registerForm','xhr':xhr});}});if(config.canClose){$('.cancel-window').click(function(ev){window.location=location.href;$(this).parents('.ui-dialog-content').dialog('close');return false;});}else{$('.cancel-window').remove();}

103 $('.register-box-footer-link').live('click',function(ev){var tabIndex=parseInt($(this).attr('data-tabIndex'));$('#registration-tabs').tabs('select',tabIndex);return false;});$('a','#dialog-sign-up-button').attr('draggable',false);},ajaxLoader:''});if(config.autoShow){$(selector).trigger('click');}},updateLocationHash:function(pagerId){var newLocation=$('.pagination .selected > a:first','#'+pagerId).attr('href');if(newLocation){$.bbq.pushState(pagerId+'='+newLocation);}},loadLocationHash:function(listId){$(window).bind('hashchange',function(e){var list=$('#'+listId);var currentUrl=$('.pagination .selected > a:first',list).attr('href').replace(/\+/g,'%20');var loadUrl=$.bbq.getState(listId);loadUrl=loadUrl?encodeURI(loadUrl).replace(/,/,encodeURIComponent(',')):loadUrl;if(loadUrl&&(currentUrl!==loadUrl)){list.yiiListView.update(listId,{url:loadUrl});}});$(window).trigger('hashchange');},trackGAURL:function(options){var _events=this.getGlobal('gaEvents');options=$.extend({url:window.location.href,ev:''},options);if(options.ev!=''&&!_events[options.ev]){return false;}

104 var _trackUrl='{url}{glueString}{eventName}';var eventName=options.ev===''?'':'ev='+_events[options.ev];var _glueString=eventName!==''?(options.url.search(/\?/)>-1?'&':'?'):'';_trackUrl=_trackUrl.replace('{url}',options.url).replace('{glueString}',_glueString).replace('{eventName}',eventName);this.loadGAParams({'_trackPageview':_trackUrl});return true;},loadGAParams:function(moreParams){var params=this.getGlobal('GAParams');if(moreParams!=='undefined'){params=$.extend(params,moreParams);}

105 _gaq=typeof(_gaq)!=='undefined'?_gaq:[];$.each(params,function(GAParam,value){if(value&&value!==''){_gaq.push([GAParam,value]);}});},focus:function(options){options=$.extend({cnt:null,isId:false,filter:'input[type="text"]:first,textarea:first'},options);if(options.isId){options.cnt='#'+options.cnt.replace('#','');}

JSFunction.h (https://github.com/weissms/owb-mirror.git) C Header · 166 lines

152 JSValue* globalFuncDecodeURIComponent(ExecState*, JSObject*, JSValue*, const ArgList&);

153 JSValue* globalFuncEncodeURI(ExecState*, JSObject*, JSValue*, const ArgList&);

154 JSValue* globalFuncEncodeURIComponent(ExecState*, JSObject*, JSValue*, const ArgList&);

155 JSValue* globalFuncEscape(ExecState*, JSObject*, JSValue*, const ArgList&);

156 JSValue* globalFuncUnescape(ExecState*, JSObject*, JSValue*, const ArgList&);

cookie.js (https://gitlab.com/essere.lab.public/qualitas.class-corpus) JavaScript · 77 lines

60 }else{

61 props = props || {};

62 value = encodeURIComponent(value);

63 if(typeof(props.expires) == "number"){

64 var d = new Date();

xhr.js (https://gitlab.com/jiangming1399/luci) JavaScript · 262 lines

119 {

120 code += (code ? '&' : '') +

121 form.elements[i].name + '=' + encodeURIComponent(

122 e.options[e.selectedIndex].value

123 );

128 if (e[j].name) {

129 code += (code ? '&' : '') +

130 e[j].name + '=' + encodeURIComponent(e[j].value);

131 }

132 }

134 {

135 code += (code ? '&' : '') +

136 e.name + '=' + encodeURIComponent(e.value);

137 }

138 }

TweetBox.js (https://gitlab.com/alidzapp/TweetSplitter) JavaScript · 66 lines

13 this.domElement.value += this.currentCountTag;

14

15 $("#wrapper").append("<div id='tweets" + this.idNum + "' class='row clearfix'><div id = 'tweetColumn" + this.idNum + "' class='col-xs-8 column'></div><div id= 'buttons" + this.idNum + "' class='col-xs-4 column'><div class='row clearfix'><a class='btn btn-primary' id='custom-tweet-button" + this.idNum + "' >Tweet</a></div><div class='row clearfix'><label id='count" + this.idNum + "' for='tweet'></label></div><script> document.getElementById('custom-tweet-button" + this.idNum + "').addEventListener('click', function (el) { el.target.href = ''; var tweet = encodeURIComponent(($('#tweet" + this.idNum + "').val())); el.target.href = href='http://twitter.com/intent/tweet?text=' + tweet});</script></div></div>");

16 document.getElementById("tweetColumn" + this.idNum + "").appendChild(this.domElement);

17

AuthView.js (https://gitlab.com/atomfrede/jhipster-ci-example-gradle) JavaScript · 178 lines

141 redirect_uri = redirectUrl;

142

143 url += '&redirect_uri=' + encodeURIComponent(redirectUrl);

144 url += '&realm=' + encodeURIComponent(realm);

145 url += '&client_id=' + encodeURIComponent(clientId);

146 url += '&scope=' + encodeURIComponent(scopes.join(scopeSeparator));

147 url += '&state=' + encodeURIComponent(state);

148 for (var key in additionalQueryStringParams) {

149 url += '&' + key + '=' + encodeURIComponent(additionalQueryStringParams[key]);

shipping.tpl (https://github.com/elleeott/WPOC-boilerplate.git) Smarty Template · 145 lines

37 type: 'POST',

38 url: 'index.php?route=total/shipping/quote',

39 data: 'country_id=' + $('select[name=\'country_id\']').val() + '&zone_id=' + $('select[name=\'zone_id\']').val() + '&postcode=' + encodeURIComponent($('input[name=\'postcode\']').val()),

40 dataType: 'json',

41 beforeSend: function() {

functions.js (https://github.com/jrschumacher/jobberbase.git) JavaScript · 112 lines

41 {

42 clearTimeout(window.search_timer);

43 $('#job-listings').load(url + encodeURIComponent(keywords) + '/');

44 $("#indicator").hide();

45 },

storage.permissions.js (https://github.com/Setuber/Ringify.git) JavaScript · 148 lines

4 var useQueues = $("[id=Queues_" + userId + "]:checked").val() !== undefined;

5

6 actionUrl = actionUrl.replace("_user_", encodeURIComponent(userId));

7 actionUrl = actionUrl.replace("_useTables_", encodeURIComponent(useTables));

8 actionUrl = actionUrl.replace("_useBlobs_", encodeURIComponent(useBlobs));

9 actionUrl = actionUrl.replace("_useQueues_", encodeURIComponent(useQueues));

15 var isPublic = $("[id=Public_" + storage + "]").val() == "false";

16

17 actionUrl = actionUrl.replace("_storage_", encodeURIComponent(storage));

18 actionUrl = actionUrl.replace("_isPublic_", encodeURIComponent(isPublic));

44 actionUrl = hasAccess ? addPermissionActionUrl : removePermissionActionUrl;

45

46 actionUrl = actionUrl.replace("_storage_", encodeURIComponent(storage));

47 actionUrl = actionUrl.replace("_user_", encodeURIComponent(userId));

ngConstellation-1.8.0.js (https://gitlab.com/psyked/Promethee) JavaScript · 225 lines

182 var ret = [];

183 for (var d in data)

184 ret.push(encodeURIComponent(d) + "=" + encodeURIComponent(data[d]));

185 return ret.join("&");

186 }

search.js (https://github.com/johannesloetzsch/evopedia.git) JavaScript · 105 lines

19 var parts = new Array();

20 for (key in params) {

21 parts.push(encodeURIComponent(key) + '=' + encodeURIComponent(params[key]));

22 }

23 return parts.join("&");

prototype.js (http://fatal-error.googlecode.com/svn/trunk/) JavaScript · 3269 lines ✨ Summary

This JavaScript code defines a set of functions and classes for working with CSS selectors, including parsing, manipulating, and evaluating selector expressions. It provides a robust framework for querying HTML documents based on CSS selectors, allowing developers to efficiently search and manipulate elements in the DOM. The code is designed to be flexible and extensible, supporting various types of selectors and attributes.

809

810 Hash.toQueryString.addPair = function(key, value, prefix) {

811 key = encodeURIComponent(key);

812 if (value === undefined) this.push(key);

813 else this.push(key + '=' + (value == null ? '' : encodeURIComponent(value)));

popup.js (https://bitbucket.org/peixuan/chromium_r197479_base.git) JavaScript · 83 lines

24 'method=flickr.photos.search&' +

25 'api_key=90485e931f687a9b9c2a66bf58a3861a&' +

26 'text=' + encodeURIComponent(QUERY) + '&' +

27 'safe_search=1&' +

28 'content_type=1&' +

ByteArray.js (https://github.com/teamdstn/dstnation.git) JavaScript · 564 lines

468 ByteArray.prototype.writeUTF = function(value)

469 {

470 var str = unescape(encodeURIComponent(value));

471 var length = str.length;

472

487 ByteArray.prototype.writeUTFBytes = function(value)

488 {

489 var str = unescape(encodeURIComponent(value));

490 var length = str.length;

491