-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createBlob automatically encodes string content to UTF8 #463
Comments
dudaerich
added a commit
to dudaerich/github
that referenced
this issue
Jul 27, 2017
createBlob automatically encodes string parameter by Utf8 library. In some cases the string value can be already encoded in Utf8 so the encoding should be skipped. This commit enables to pass object containing the content and encoding items. This object is directly sent to Github. Users have better control about what is actually sending. closes github-tools#463
dudaerich
added a commit
to dudaerich/github
that referenced
this issue
Jul 27, 2017
createBlob automatically encodes string parameter by Utf8 library. In some cases the string value can be already encoded in Utf8 so the encoding should be skipped. This commit enables to pass object containing the content and encoding items. This object is directly sent to Github. Users have better control about what is actually sending. closes github-tools#463
Closed
dudaerich
added a commit
to dudaerich/github
that referenced
this issue
Apr 8, 2019
dudaerich
added a commit
to dudaerich/github
that referenced
this issue
Apr 9, 2019
createBlob automatically encodes string parameter by Utf8 library. In some cases the string value can be already encoded in Utf8 so the encoding should be skipped. This commit enables to pass object containing the content and encoding items. This object is directly sent to Github. Users have better control about what is actually sending. closes github-tools#463
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 automatically encodes the string to UTF8 representation. So it is encoded twice. In my case it breaks everything. For example it transforms°
to°
.Why 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
.I think the automatic encoding should be removed or there should be option to turn it off? Wdyt?
The text was updated successfully, but these errors were encountered: