Title: API doesn't handle UTF-8 characters correctly. · Issue #43 · plotly/plotly-nodejs · GitHub
Open Graph Title: API doesn't handle UTF-8 characters correctly. · Issue #43 · plotly/plotly-nodejs
X Title: API doesn't handle UTF-8 characters correctly. · Issue #43 · plotly/plotly-nodejs
Description: I tried setting some math characters (e.g 'μ') in a title of a figure, like so: var figure = { layout: { title: 'Normal (μ = 0, σ = 1.0)', } }; However, when I call plotly.getImage(figure, ...) a error is returned and it looks like the s...
Open Graph Description: I tried setting some math characters (e.g 'μ') in a title of a figure, like so: var figure = { layout: { title: 'Normal (μ = 0, σ = 1.0)', } }; However, when I call plotly.getImage(figure, ...) a e...
X Description: I tried setting some math characters (e.g 'μ') in a title of a figure, like so: var figure = { layout: { title: 'Normal (μ = 0, σ = 1.0)', } }; However, when I call plotly.getImage(...
Opengraph URL: https://github.com/plotly/plotly-nodejs/issues/43
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"API doesn't handle UTF-8 characters correctly.","articleBody":"I tried setting some math characters (e.g 'μ') in a title of a figure, like so:\n\n```\n var figure = {\n layout: {\n title: 'Normal (μ = 0, σ = 1.0)',\n }\n };\n```\n\nHowever, when I call `plotly.getImage(figure, ...)` a error is returned and it looks like the server returned a \"500 Internal Server Error\".\n\nWhen I use the graph builder on the plot.ly site, I see that Chrome POSTs JSON in the form `title: 'Normal (\\u03bc = 0, \\u03c3 = 1.0)'`, however Node.js seems to send it literally `title: 'Normal (μ = 0, σ = 1.0)'`. Reading the JSON spec, how Node.js is sending it is valid, however, hacking the plotly/index.js, and changing the output of `JSON.stringify` to use \\u0XXX notation seems to work.\n\nSo please either change your Node.js API to encode in a way that is suitable, or please change your server to accept all valid JSON.\n","author":{"url":"https://github.com/bramp","@type":"Person","name":"bramp"},"datePublished":"2016-06-13T05:47:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/43/plotly-nodejs/issues/43"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9155fc6a-fdab-0731-f1d5-1236f599b87f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCFE:1D778D:33AA60:492439:696A4CBE |
| html-safe-nonce | 36f75eddd470a19e4bbe0c3aa429236aa2cbfbb3d810db9542c6d5b3858e90c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0ZFOjFENzc4RDozM0FBNjA6NDkyNDM5OjY5NkE0Q0JFIiwidmlzaXRvcl9pZCI6IjMwMzM0Njk1NDgxOTk4MjQ1NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b9fdc128cf9e6b41bf592825df22f47c7d4fa3a9a81170b1518e2107ba932eb4 |
| hovercard-subject-tag | issue:159877380 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly-nodejs/43/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e264f256440e5d9c5726335c5d89c2f5c41899ab3937808d5d6cef0294986fc0/plotly/plotly-nodejs/issues/43 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e264f256440e5d9c5726335c5d89c2f5c41899ab3937808d5d6cef0294986fc0/plotly/plotly-nodejs/issues/43 |
| og:image:alt | I tried setting some math characters (e.g 'μ') in a title of a figure, like so: var figure = { layout: { title: 'Normal (μ = 0, σ = 1.0)', } }; However, when I call plotly.getImage(figure, ...) a e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bramp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly-nodejs git https://github.com/plotly/plotly-nodejs.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 16871752 |
| octolytics-dimension-repository_nwo | plotly/plotly-nodejs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16871752 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly-nodejs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width