Comments (6)
As suspected, onedrive encodes the en dash on the simple upload response. Relevant excerpt:
"name":"lets test en dashes \u2013 small file.txt"
from onedrive.
more specifically, the en dash is represented in the ubyte[] as 226 128 147
in decimal or 11100010 10000000 10010011
in binary, which looks like valid encoding as far as I can tell.
from onedrive.
Changing the type of ubyte[] content
to char[]
works without any other changes, although I'm not sure why D allows concatenation of different types. The example for http.onReceive actively converts instead.
Is either of these idiomatic?
from onedrive.
Thanks for the detailed report.
Your suggested fix is correct (32009e2). As soon as content
is typed as char[], it is treated as an UTF-8 string and all code points can be iterated correctly.
from onedrive.
thanks!
from onedrive.
I asked on the D forum why the concatenation of different types is allowed (assignation doesn't work). The reason is that concatenation works by appending each element from the source to the destination, in this case the types involved are implicitly convertible into one another (ubyte
-> char
) therefore the concatenation is allowed.
from onedrive.
Related Issues (20)
- Sync error HOT 2
- I needed to install these prerequisites when installing in Debian/Mint HOT 1
- The onedrive process disappears. HOT 2
- Qxor presenting an error when compiling with make HOT 2
- Links to Sharepoints documents are not sync'ed HOT 1
- Locally deleted folder is not removed from OneDrive HOT 1
- error during make command HOT 2
- SSL error when trying to download the first file HOT 1
- Can't Synchronize Shared Files
- "bad request" due to "dangerous Request.Path" persists despite file deletion HOT 2
- Seems to no update/download ".git" folders HOT 1
- Proxy support HOT 2
- AADSTS900144: The request body must contain the following parameter: 'scope'. HOT 1
- JSONException@std/json.d(508): Key not found: remaining HOT 3
- How to login to sharepoint with command on linux machine HOT 1
- Constant high-cpu usage despite nothing is syncing up HOT 4
- service floods syslog with the failed initialization message HOT 1
- Archive this repo and link to abraunegg/onedrive? HOT 2
- Unable to start OneDrive service in LM 21.1 Cinnamon HOT 4
- Login have already authed but onedrive display the white page and enter shows Could not initialize the OneDrive API HOT 1
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 onedrive.