Title: createBlob automatically encodes string content to UTF8 · Issue #463 · github-tools/github · GitHub
Open Graph Title: createBlob automatically encodes string content to UTF8 · Issue #463 · github-tools/github
X Title: createBlob automatically encodes string content to UTF8 · Issue #463 · github-tools/github
Description: I have web application completely in UTF-8. I define and all files are saved in UTF-8 encoding. When I want to create a blob on github, the library automatically encodes the string to UTF8 representation. So it i...
Open Graph Description: I have web application completely in UTF-8. I define and all files are saved in UTF-8 encoding. When I want to create a blob on github, the library automatically encodes th...
X Description: I have web application completely in UTF-8. I define <meta charset='utf-8' /> and all files are saved in UTF-8 encoding. When I want to create a blob on github, the library automatica...
Opengraph URL: https://github.com/github-tools/github/issues/463
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"createBlob automatically encodes string content to UTF8","articleBody":"I have web application completely in UTF-8. I define `\u003cmeta charset='utf-8' /\u003e` and all files are saved in UTF-8 encoding. When I want to create a blob on github, the library automatically encodes the string to UTF8 representation. So it is encoded twice. In my case it breaks everything. For example it transforms `°` to `°`.\r\n\r\nWhy is this doing? I am not expert in this area but I assume that if the HTML page defines charset in meta element, web browser automatically converts strings when it sends some HTTP requests and also set up properly the HTTP headers such as `Content-Type`.\r\n\r\nI think the automatic encoding should be removed or there should be option to turn it off? Wdyt?","author":{"url":"https://github.com/dudaerich","@type":"Person","name":"dudaerich"},"datePublished":"2017-07-26T19:08:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/463/github/issues/463"}
| 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:baf7f676-21c8-5ab9-b100-fabf5e7932b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB0E:1F5C98:3E7FB1:536CB0:6972F8A9 |
| html-safe-nonce | b42666d3b1e3cbd25b03fb8a14d110296e449a818f7b8ce10a41c94c07b951d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjBFOjFGNUM5ODozRTdGQjE6NTM2Q0IwOjY5NzJGOEE5IiwidmlzaXRvcl9pZCI6IjU4NzU5MTA1ODQzNzE5NjgxNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0bfb130907c3b9e4ddf5c77d1601d60e9cd34064d6a13bfce18042881de8ab70 |
| hovercard-subject-tag | issue:245823633 |
| 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/github-tools/github/463/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e3b382e3fc7cb67d85b53d9d602ce88caffa0f95a158ef1b02a7fb1390ecfd93/github-tools/github/issues/463 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e3b382e3fc7cb67d85b53d9d602ce88caffa0f95a158ef1b02a7fb1390ecfd93/github-tools/github/issues/463 |
| og:image:alt | I have web application completely in UTF-8. I define and all files are saved in UTF-8 encoding. When I want to create a blob on github, the library automatically encodes th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dudaerich |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9946c12a4847916f32068429cb2ad536f7d8450fc8b70730d0e9aa7861057db8 |
| turbo-cache-control | no-preview |
| go-import | github.com/github-tools/github git https://github.com/github-tools/github.git |
| octolytics-dimension-user_id | 16116810 |
| octolytics-dimension-user_login | github-tools |
| octolytics-dimension-repository_id | 3640925 |
| octolytics-dimension-repository_nwo | github-tools/github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3640925 |
| octolytics-dimension-repository_network_root_nwo | github-tools/github |
| 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 | f92f1208f12997e73ccb28d2f389b2adab0c98a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width