Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 19d79db

Browse files
create new utf8 buffer from url encoded string for special character handling
1 parent 1318658 commit 19d79db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Plotly.prototype.plot = function(data, graphOptions, callback) {
5353
}
5454

5555
// trim off last ambersand
56-
urlencoded = urlencoded.substring(0, urlencoded.length - 1);
56+
urlencoded = new Buffer(urlencoded.substring(0, urlencoded.length - 1), 'utf8');
5757

5858
var options = {
5959
host: self.host,

0 commit comments

Comments
 (0)