#character-encoding

[ follow ]
fromLuke Plant's home page
2 days ago

Breaking "provably correct" Leftpad

I'll pick a few, simple, perfectly ordinary inputs at random, and work out what I think the output should be. This is a pretty trivial problem so I'm expecting that all the implementations will match my output. [narrator: He is is expecting no such thing] I'm also expecting that, even if for some reason I've made a mistake, all the implementations will at least match each other. [narrator: More lies] They've all been proved correct, right?
fromTheregister
2 weeks ago

Microsoft has name of old mouse hidden in Bluetooth drivers

"There is a lot of bad hardware out there," writes Chen, "and there are a lot of compatibility hacks to deal with it." There's hardware that spouts nonsense or does things that it says it absolutely won't (Chen cites the example of a USB device that drew more power than it promised it would.) Still, the vast majority can be dealt with behind the scenes with code that can repair or ignore corrupted values.
Gadgets
fromRubyflow
3 months ago

Ever wondered how Ruby translates numbers into characters-or even emojis?

Ruby's .chr and .ord methods demystify the journey of characters from raw bytes to multi-byte UTF-8 encoding, revealing the intricacies of ASCII and beyond.
fromHackernoon
1 year ago

Fixing Garbled Text When Syncing Oracle to Doris with SeaTunnel 2.3.9 | HackerNoon

If Oracle is using a character set like ASCII, and you're syncing to Doris (which expects proper UTF-8 or other compatible encodings), Chinese characters can become unreadable.
Java
Typography
fromHackernoon
5 years ago

Why Every Emoji, Letter, and Symbol You Type Is Basically Just Math | HackerNoon

Character encoding is essential for translating human language into a format that computers can process.
[ Load more ]