Comments (4)
I think we can just add string-as-unibyte to the function.
from sx.el.
I don't think we can.
string-as-unibyte is a built-in function in `C source code'.
(string-as-unibyte STRING)
Return a unibyte string with the same individual bytes as STRING.
If STRING is unibyte, the result is STRING itself.
Otherwise it is a newly created string, with no text properties.
If STRING is multibyte and contains a character of charset
`eight-bit', it is converted to the corresponding single byte.
What we have here is a failure to communicate is a truly multi-byte string. I want to eventually support a pure-ASCII mode (for dumber terminals), but I don't Unicode is a bad thing to assume. There are even many usernames that need Unicode to display.
from sx.el.
Supporting ascii mode is a whole other issue. It's not our fault that stack exchange uses unicode, and we would have to patch something manually to get rid of it.
Using unibyte vs multibyte is our fault (and has nothing to do with the above), and it has to do with how emacs is internally representing unicode.
from sx.el.
OK, this is really weird.
Neither string-as-unibyte
nor string-as-multibyte
solve this issue.
Similarly, neither (set-buffer-multibyte nil)
nor (set-buffer-multibyte t)
solve the issue.
However, doing both (set-buffer-multibyte nil)
AND (set-buffer-multibyte t)
does solve it.
I'll push a patch now.
from sx.el.
Related Issues (20)
- Crash on sx-open-link HOT 10
- How to remap keys for `sx-question-list-mode` HOT 2
- Completely disable header in sx buffers? HOT 4
- Discussion: Moving to a magit-like interface HOT 1
- sx-inbox-notifications error "Wrong type argument: stringp, nil" HOT 2
- Switch to API-Wrap.el
- (sx-ask) funcall-interactively: Text is read-only HOT 15
- Authentication woes HOT 22
- inbox url links HOT 2
- inbox display reputation changes and number of unread items HOT 2
- `sx_authenticate` redirects to a "not valid uri" HOT 6
- How to get sx.el inbox new message count in mode-line? HOT 1
- Sorting doesn't seem to work HOT 3
- access_token encryption HOT 1
- Authentication fails HOT 2
- Answers are not displayed after sorting HOT 8
- Support for Stack Exchange Enterprise HOT 1
- StackOverflow for Teams support
- Indentation is removed from triple-backtick code blocks
- Answers not displayed because of markdown error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sx.el.