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 ...
3
votes
2
answers
197
views
(Wolfram Workbench)"Non-ascii character" warning
Strangely, I still get "Non-ascii character" warning even though I have set my Workspace, Project, and Source code to UTF-8. Moreover,the Non-ascii character is in the commnet as below. the ...
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, ...
1
vote
1
answer
122
views
Insert a nonlinear PDE in Mathematica
I am new to Mathematica and trying to learn its language.
I want to solve a non-linear PDE but don't know how to insert it.
Would you please help me or give me some tutorial about it?
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:
...
2
votes
0
answers
171
views
How can I rasterize expressions with Runic characters in Wolfram Cloud?
Here is my function to create polynomials with a specific format:
...
8
votes
1
answer
333
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 ...
4
votes
6
answers
526
views
Convert integer to words of specific length
Assume we give the value from 1 to 26 to alphabets a,b,...,z.
Now given an integer ($n$) i like to generate words of specific length ($l$) that sum of them equals $n$. For instance, if
$n=10$, $l=3$;
<...
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 ...
7
votes
1
answer
527
views
How can I export a text file in UTF-8 with a BOM (also known as UTF-8 with signature)?
The default setting "UTF8"/"UTF-8" results in a text file without a byte order mark (BOM)/signature. What if ...
1
vote
0
answers
108
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 <...
0
votes
1
answer
143
views
Having issues creating rules from a CSV import
I'm importing a CSV file with two columns. I've done this with other files, but this one is causing issues when trying to create rules to associate IDs with the titles. Here's a sample of the ...
9
votes
2
answers
874
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
2
answers
198
views
How can I convert the output of IntegerString[n, "Base64"] back into base 10?
BaseForm[] does not allow conversion to bases above base 36. However, IntegerString[] can convert a number ...
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 <...