Questions tagged [character-encoding]
Questions about character encoding and decoding. This includes, but is not restricted to, conversion of characters to their numerical value in a character table and vice versa and conversion of characters to strings and vice versa.
123 questions
0 votes
0 answers
49 views
Encoding text from copy and paste
When I copy from a websource some function or expression or slice of code and paste into say wolfram engine, or mathematica, I often get syntax errors. mostly from misinterpretation of the text ...
0 votes
0 answers
86 views
Neural Network - catenate layer with an input in the form of <|"x"->{"y","z"}|>
I'm doing a research project that requires me to make a custom neural network, and one major challenge I'm facing is that a few pieces of the input data can have varying dimensionality. Specifically, ...
6 votes
1 answer
164 views
Converting Unicode Number Subscripts to Standard Mathematica Subscript Notation
I am importing data data={"t*α₁","α₁*α₄"} But unfortunately, all of the subscripts are in Unicode: ...
8 votes
1 answer
331 views
Unicode symbols not encoded properly in BarcodeImage[] in Mathematica 13.3
Bug introduced in 13.2 or 13.3 and fixed in 14.1 Trying to generate a simple QR code with ← or U+2190. I got varying results: the same in Mathematica versions 12.3 and 13.1 but very different in ...
1 vote
2 answers
154 views
Can you recover the original vectors that, when summed together, achieved a particular criteria
I am wondering if it is possible to take the binary strings of length $3$ (tuples) whose sums have weight $2$ (i.e they have $2$ non-zero entries)(binary case, meaning they have two $1$'s entries) $$u ...
1 vote
0 answers
107 views
Byte array to String with no internal processing, e.g. 𓃰
UTF8 defines a way to map from bytes to glyphs. In particular, glyphs with code <128 can be 1 byte, glyphs with code <2048 can be 2 bytes, etc. up to 4 bytes. For instance, the white queen <...
9 votes
2 answers
873 views
Does Mathematica have an equivalent to the Python 'translate' function?
In Python you can make a character translation table with 'maketrans', passing it two strings of the same length. Then you can call 'translate' passing a new string and the table you just created. The ...
2 votes
1 answer
1k views
How to copy infinity symbol as ∞ and not as \[Infinity]
FromCharacterCode[8734] (* ∞ *) No matter how I copy ∞ whether as plaintext or input text or whether it is inside string like <...