25,280 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
47
views
Arabic text gets corrupted to "E1-(' ('D9'DE" when creating PDF annotations with @iwater/annotpdf library
I'm using the @iwater/annotpdf library to create PDF annotations in an Angular application. When I try to create free text annotations with Arabic text, the text gets corrupted to unreadable ...
4
votes
1
answer
188
views
Why does MSVC's std::print corrupt long unicode strings when printing with utf-8?
If I compile the following code in Visual Studio with the /utf-8 flag enabled:
#include <print>
int main() {
std::println("{}", "▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊▊...
0
votes
0
answers
62
views
Avoid encoding emojis when using yq --prettyPrint
When I convert my JSON file to YAML, i want any unicode chars to be part of the content and not escaped with backslash and quotes. Example: This is my file.json
What can I do in order to make YQ not ...
4
votes
2
answers
151
views
How does PCRE \p{N} define a "numeric character"
In PCRE-regular expressions, \p{N} is supposed to match "Any kind of numeric character from any script". According to descriptions on RegexInfo and also on sidebar-explanations on regex101....
2
votes
1
answer
94
views
Display game variation tree using compact vertical layout
I want to create a multi-line string that can be printed out or displayed via curses. This string displays the moves and variations of a go/weiqi/baduk game from an sgf file using unicode characters. ...
0
votes
0
answers
115
views
How do you print an emoji in VSCode?
(UTF_8, though I did try UTF_16. Places where I was using UTF_16 are marked)
I'm trying to print a red heart and have so far come up completely blank, here are some of my attempts:
Attempt 1:
String ...
0
votes
1
answer
83
views
How to make Microsoft Excel load Unicode characters correctly when open double clicking CSV file
Note: This issue is specific to Microsoft Excel. It works fine on LibreOffice without any problems.
I am developing a React application where I need to let the user download some table data upon a ...
0
votes
0
answers
49
views
How to fix IndoPak Arabic font overlapping (Kasra below letters) in React Native Quran app?
I am building a Quran app in React Native and using an IndoPak Nastaleeq font (ttf) to render Arabic text.
The problem is that some diacritics (especially Kasra ِ U+0650) are overlapping with letters ...
0
votes
0
answers
107
views
Entering Unicode codepoints in Informix
How would you enter a Unicode codepoint in an Informix char field? I know you can use the octal like "011円" for a tab character. How would I enter a Left Double Quotation Mark (U+201c)? I ...
1
vote
1
answer
77
views
ouput unicode character by suppressing original keystroke of physical keyboard using evdev-python in linux
I am using Kali 2022 (Linux) with xfce 4.16. I am experimenting with python evdev module. What I am trying to achieve is when pressing certain key on the keyboard (like letter 'a'), instead of letter '...
2
votes
3
answers
131
views
Looking for a custom Unicode character in HTML
I need to display a particular character in a webpage, but I have been unable to find anything online for it.
I need a gamma character with a dot on top of it. This is the closest I can get:
<p> ...
1
vote
3
answers
236
views
How can I reliably print a Unicode character to the terminal from C? [closed]
I'm maintaining a program (a compiler for an obscure language) that takes input in the form of text files. Existing code reads these files and converts their various encodings into a sequence of ...
5
votes
1
answer
121
views
Conversion to int with Unicode strings
I recognized that int(unicode_string) sometimes gives obscure results.
E.g. int('᪐᭒') == 2.
>>> bytes('᪐᭒', 'utf-8')
b'\xe1\xaa\x90\xe1\xad\x92'
>>> [f'U+{ord(c):04X}' for c in '᪐᭒']
...
0
votes
1
answer
86
views
How do I stop Chrome rendering U+2122 in a different colour to the rest of my text?
I have the following simplified version of a web site:
<html><head><title>Test (TM)</title></head>
<body style="font-family: Liberation Sans; color: red">
...
1
vote
1
answer
88
views
SendMessageW with TTM_ADDTOOLW results FALSE
The following code will produce a working tooltip:
void Tooltip::init() {
InitCommonControls();
hwnd = CreateWindowExA(WS_EX_TOPMOST, TOOLTIPS_CLASSA, nullptr, WS_POPUP | TTS_NOPREFIX | ...