Questions tagged [zero-width-space]

a control character used to indicate boundaries between words

A zero-width space is a control character (non-printing character) used to indicate boundaries between words.

In Unicode, this character is encoded as U+200B.

In HTML, this character is encoded as ​.

22 questions
0
votes
0 answers

Why does printing multiple zero width spaces print less than expected in C?

The program below is supposed to print A, 100 zero width spaces or '0x200B' and then print B, but when I execute it, it prints 10 zero width spaces instead #include #include #include int main() { …
SohX33
  • 3
  • 2
0
votes
1 answer

How do I print a zero width space character in C

I've tried using printf to print a zero width space printf("%c", '​'); I get a warning whenever I try compiling warning: multi-character character constant [-Wmultichar] And when I run the program, I get whitespaces instead of the invisible…
SohX33
  • 3
  • 2
0
votes
1 answer

Single where() condition causes query not to return anything

I'm fetching longitude and latitude values from a database using a home address. The structure of each of the documents in the collection is as follows: "Ext": string "Lat": string "Long": string "Parish": string "Postal": string "Street":…
0
votes
1 answer

Python Script Called in Powershell Fails to Write to Stdout when Piped to File

So I'm attempting to chain a couple scripts together, some in powershell (5.1), some in python (3.7). The script that I am having trouble with is written in python, and writes to stdout via sys.stdout.write(). This script reads in a file, completes…
0
votes
1 answer

Inserting zero-width space after each symbol

I need to place a zero-width space after each character within the texts in MS Excel document. Two important conditions: The target text is in Japanese and Chinese. Text with Latin characters and numbers should not be affected. I.e. in mixed…
0
votes
2 answers

removing a zero width character in c++?

I'm working on a c++ file and I've encountered an interesting problem. I'm outputting strings into a text file (using ofstream) and I have the following lines. void InstructionWriter::outputLabel(string s){ string sLabel; sLabel =…
0
votes
2 answers

Zero-width space makes HTML link unclickable

I'm creating a link to a page based on the name the user gave that page. However, the link is unclickable if the name is a zero-width space. How can I stop users from giving pages unclickable names? I'd like to allow Unicode characters if…
Don Kirkby
  • 53,582
  • 27
  • 205
  • 286
1
2