Questions tagged [encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

One-way chat which encode messages, this is the server side

Alright, this is one of my first real projects in python, it's basically a one-way chat where the server sends away an encoded message. The logic of it is pretty simple and I know there is some ...
1
vote
0answers
49 views

Convert PathBuf to file URL in Rust

I've implemented a custom trait on std::path::Path (and by extension std::path::PathBuf) with a method which turns the struct ...
-1
votes
1answer
105 views

I wrote a header file to write German umlauts in a textfile properly

This function is about the fact that a std::wstring was used in another cpp file in order to be able to read strings with German umlauts from the console. Since it is difficult to get wstrings into a ...
1
vote
1answer
102 views

Method encodes all less than (<) characters in a HTML string, but not the HTML tags

I am cleaning a HTML string to encode the less than sign (<) to a HTML entity (&lt;), but leaving the HTML tags as they are. An example is converting ...
2
votes
2answers
108 views

Message encode/decode library

I write protocol messages encoder/decoder for my project. All messages have 2-bytes header (1 byte - message type, 1 byte message sub-type) and body. There are two types of messages: Plain message - ...
7
votes
2answers
327 views

Huffman encoding bitcodes display

So, the concept of the code is simple. Take any file, read the binary character counts and construct a Huffman tree, and then output the bit code of each character (displayed as its 8-bit value). This ...
6
votes
2answers
148 views

Encode message by alphabets

I am trying to resolve below problem to improve my skill. I would appreciate it if someone improve my code in a better way. Given the mapping a = 1, b = 2, ... z = 26, and an encoded message, count ...